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=1Important: Don't forget to set the
PG_CONFIGvariable (make PG_CONFIG=...) in case you want to testsnowball_exton 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 a.zakirov@postgrespro.ru, Postgres Professional Ltd.
- Ingroj Shrestha ing.stha@gmail.com, Nepali NLP Group
- Oleg Bartunov obartunov@gmail.com, Postgres Professional Ltd.
- Shreeya Singh Dhakal, Nepali NLP Group