An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![GitHub license](https://img.shields.io/badge/license-PostgreSQL-blue.svg)](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