pg_kaasearch
pg-kaasearch · Karakalpak full-text search with Latin, Cyrillic and apostrophe normalization.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102357 | pg_kaasearch | pg-kaasearch | 1.0.1 | FTS | MIT | C |
PostgreSQL · 15, 16, 17, 18
Usage
Sources:
pg_kaasearch provides Karakalpak full-text search, including stemming, stop words and normalization of Latin, Cyrillic and apostrophe spellings. Distribution 1.0.0 installs SQL version 1.0. PostgreSQL 15–18 and a UTF8 database are required.
Enable and Search
Installation requires a privileged extension installer; the control file does not mark the extension trusted. It is relocatable and needs no preload.
Use the same text-search configuration in an expression index and its queries:
Objects and Dictionaries
kaasearch is the text-search configuration; kaasearch_parser, kaasearch_template and kaasearch_dict provide its parser and dictionary. kaa_stem returns a stem, kaa_normalize normalizes spelling, and kaa_analyze returns the normalized word, stem, segments, classes and source. Standard ts_rank and ts_headline work with the configuration.
Stop words come from the installed kaasearch.stop file. A custom lexicon can be configured with ALTER TEXT SEARCH DICTIONARY kaasearch_dict (Lexicon = name); the corresponding server-side dictionary file must exist. Rebuild affected text-search indexes after changing tokenization or dictionary behavior. Schema-qualify the configuration when installing outside the search path.