/snowball_ext

The Snowball dictionary template extension for PostgreSQL

Primary LanguageCOtherNOASSERTION

GitHub license

snowball_ext

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.

Installation

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 test snowball_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

Authors