Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 634 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 634 Bytes

Hunspell german dictionary with support of compound words

This is Postgresql extension that installs Hunspell dictionaries with recognizing of the words that can be compounds of other words. The dictionaries were copied from here: http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/

Install

make
sudo make install

If you need to specify path to pg_config

make PG_CONFIG=/usr/pgsql-12/bin/pg_config
sudo make PG_CONFIG=/usr/pgsql-12/bin/pg_config install

Usage

CREATE EXTENSION hu_de_cmp;

SELECT ts_lexize('de_cmp', 'wärmepumpen');
SELECT to_tsvector('de_cmp', 'wärmepumpen');