https://github.com/postgrespro/snowball_ext
The Snowball dictionary template extension for PostgreSQL
https://github.com/postgrespro/snowball_ext
Last synced: 2 months ago
JSON representation
The Snowball dictionary template extension for PostgreSQL
- Host: GitHub
- URL: https://github.com/postgrespro/snowball_ext
- Owner: postgrespro
- License: other
- Created: 2018-09-06T12:32:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-02T12:24:13.000Z (about 7 years ago)
- Last Synced: 2025-10-01T23:57:09.296Z (3 months ago)
- Language: C
- Size: 13.7 KB
- Stars: 2
- Watchers: 31
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](LICENSE)
# snowball_ext
The `snowball_ext` extension provides a new dictionary template. It is a copy of
the [Snowball dictionary template](https://www.postgresql.org/docs/current/static/textsearch-dictionaries.html#TEXTSEARCH-SNOWBALL-DICTIONARY)
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:
```shell
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](https://wiki.postgresql.org/wiki/Building_and_Installing_PostgreSQL_Extension_Modules).
After that, execute the following query:
```plpgsql
CREATE EXTENSION snowball_ext;
```
It's done. Now you can test a new text search dictionary:
```plpgsql
SELECT to_tsvector('nepali', 'अँगअँकाउछन्');
to_tsvector
-------------
'अँगअँकाउ':1
```
## Authors
* Arthur Zakirov , Postgres Professional Ltd.
* Ingroj Shrestha , Nepali NLP Group
* Oleg Bartunov , Postgres Professional Ltd.
* Shreeya Singh Dhakal, Nepali NLP Group