pg_kazsearch
pg_kazsearch : Kazakh full-text search extension for PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 2200 | pg_kazsearch | pg_kazsearch | 2.3.0 |
FTS | LGPL-3.0 | Rust |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-- | No | Yes | No | Yes | no | no |
| Relationships | |
|---|---|
| See Also | pgroonga pg_tokenizer unaccent dict_xsyn hunspell_cs_cz dict_int pg_jieba pg_cjk_parser zhparser pg_bigm |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY | 2.3.0 |
18 17 16 15 14 | pg_kazsearch |
- |
| RPM | PIGSTY | 2.3.0 |
18 17 16 15 14 | pg_kazsearch_$v |
- |
| DEB | PIGSTY | 2.3.0 |
18 17 16 15 14 | postgresql-$v-pg-kazsearch |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| el8.aarch64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| el9.x86_64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| el9.aarch64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| el10.x86_64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| el10.aarch64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| d12.x86_64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| d12.aarch64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| d13.x86_64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| d13.aarch64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| u22.x86_64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| u22.aarch64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| u24.x86_64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| u24.aarch64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| u26.x86_64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
| u26.aarch64 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | PIGSTY 2.3.0 | N/A | N/A |
Source
github.com/darkhanakh/pg-kazsearch
pg_kazsearch-2.3.0.tar.gz
Install
Make sure PGDG and PIGSTY repo available:
Install this extension with pig:
Create this extension with:
Usage
Sources:
- Official v2.3.0 README
- v2.3.0 release
- PostgreSQL extension control file
- v2.2.0 to v2.3.0 upgrade SQL
pg_kazsearch provides Kazakh full-text stemming for PostgreSQL 16 through 18. It installs a ready-to-use kazakh_cfg configuration and pg_kazsearch_dict dictionary. Cyrillic and supported modern Latin-script Kazakh converge to canonical Cyrillic stems so documents and queries can match across scripts.
Core Workflow
Add a weighted stored vector and GIN index:
Dictionary Tuning
Penalty weights can be changed at runtime:
The default script_mode = auto detects supported modern Kazakh Latin orthography and returns Cyrillic stems. Disable Latin handling when strict Cyrillic-only behavior is required:
Upgrade and Search Caveats
- Stemmer upgrades change index terms. After upgrading to
2.3.0, recompute storedtsvectorcolumns or repopulate trigger-maintained vectors, thenVACUUM (ANALYZE)the table.
- Long-lived sessions opened before an upgrade should reconnect so they load the new dictionary.
- Latin support targets the modern orthography. Mixed-script input, legacy apostrophe/acute/digraph spellings, and low-confidence ASCII tokens may remain unchanged.
websearch_to_tsqueryuses strict AND semantics for ordinary terms. Applications that need broader recall should deliberately implement and measure a fallback query rather than silently changing all searches to OR.