2022-07-19 16:09:51 +02:00
|
|
|
# OS Wilno
|
|
|
|
|
|
|
|
## PostgreSQL dictionary
|
|
|
|
|
|
|
|
https://github.com/dominem/postgresql_fts_polish_dict
|
|
|
|
|
|
|
|
```
|
2023-04-24 16:11:49 +02:00
|
|
|
cp db/dictionary/polish.dict /usr/share/postgresql/tsearch_data/polish.dict
|
|
|
|
cp db/dictionary/polish.affix /usr/share/postgresql/tsearch_data/polish.affix
|
|
|
|
cp db/dictionary/polish.stop /usr/share/postgresql/tsearch_data/polish.stop
|
2022-07-19 16:09:51 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```sql
|
|
|
|
CREATE TEXT SEARCH DICTIONARY polish (
|
|
|
|
Template = ispell,
|
|
|
|
DictFile = polish,
|
|
|
|
AffFile = polish,
|
|
|
|
StopWords = polish
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TEXT SEARCH CONFIGURATION polish(parser = default);
|
|
|
|
|
|
|
|
ALTER TEXT SEARCH CONFIGURATION polish
|
|
|
|
ALTER MAPPING FOR asciiword, asciihword, hword_asciipart, word, hword, hword_part
|
|
|
|
WITH polish;
|
|
|
|
```
|