The snowball_ext
extension provides a new dictionary template. It is a copy of
the Snowball dictionary template
of PostgreSQL. Currently it provides stemming algorithms for the following
languages:
- nepali
The reason why snowball_ext
exists is that PostgreSQL's Snowball dictionary
template isn't extensible. That is you cannot add new stemming algorithms.
To install snowball_ext
, execute this in the extension's directory:
make install USE_PGXS=1
Important: Don't forget to set the
PG_CONFIG
variable (make PG_CONFIG=...
) in case you want to testsnowball_ext
on a non-default or custom build of PostgreSQL. Read more here.
After that, execute the following query:
CREATE EXTENSION snowball_ext;
It's done. Now you can test a new text search dictionary:
SELECT to_tsvector('nepali', 'अँगअँकाउछन्');
to_tsvector
-------------
'अँगअँकाउ':1
- Arthur Zakirov [email protected], Postgres Professional Ltd.
- Ingroj Shrestha [email protected], Nepali NLP Group
- Oleg Bartunov [email protected], Postgres Professional Ltd.
- Shreeya Singh Dhakal, Nepali NLP Group