]> granicus.if.org Git - postgresql/commit
Improve support of Hunspell in ispell dictionary.
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 4 Mar 2016 17:08:10 +0000 (20:08 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 4 Mar 2016 17:08:47 +0000 (20:08 +0300)
commitd78a7d9c7fa3e9cd494b906f065fe7b7fe9fb9a5
tree23389711b4ccf0f5c8dd7684ae102b9eac5df66c
parent9445db925e78c2c4fb12067ad5618e2aecabe109
Improve support of Hunspell in ispell dictionary.

Now it's possible to load recent version of Hunspell for several languages.
To handle these dictionaries Hunspell patch adds support for:
* FLAG long - sets the double extended ASCII character flag type
* FLAG num - sets the decimal number flag type (from 1 to 65535)
* AF parameter - alias for flag's set

Also it moves test dictionaries into separate directory.

Author: Artur Zakirov with editorization by me
15 files changed:
doc/src/sgml/textsearch.sgml
src/backend/tsearch/Makefile
src/backend/tsearch/dicts/hunspell_sample.affix [moved from src/backend/tsearch/hunspell_sample.affix with 100% similarity]
src/backend/tsearch/dicts/hunspell_sample_long.affix [new file with mode: 0644]
src/backend/tsearch/dicts/hunspell_sample_long.dict [new file with mode: 0644]
src/backend/tsearch/dicts/hunspell_sample_num.affix [new file with mode: 0644]
src/backend/tsearch/dicts/hunspell_sample_num.dict [new file with mode: 0644]
src/backend/tsearch/dicts/ispell_sample.affix [moved from src/backend/tsearch/ispell_sample.affix with 100% similarity]
src/backend/tsearch/dicts/ispell_sample.dict [moved from src/backend/tsearch/ispell_sample.dict with 100% similarity]
src/backend/tsearch/dicts/synonym_sample.syn [moved from src/backend/tsearch/synonym_sample.syn with 100% similarity]
src/backend/tsearch/dicts/thesaurus_sample.ths [moved from src/backend/tsearch/thesaurus_sample.ths with 100% similarity]
src/backend/tsearch/spell.c
src/include/tsearch/dicts/spell.h
src/test/regress/expected/tsdicts.out
src/test/regress/sql/tsdicts.sql