bm25_native
pgx-bm25 · Native PostgreSQL BM25/BM25F ranked full-text index access method.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102155 | bm25_native | pgx-bm25 | 1.0 | FTS | PostgreSQL | C |
PostgreSQL · 17, 18
Usage
Sources:
bm25_native supplies a native full-text index with BM25 ranking, stored in PostgreSQL index pages and maintained through normal WAL and vacuum machinery. Release v1.0.0 installs SQL extension version 1.0; supported majors are PostgreSQL 17 and 18.
Core Workflow
Operational Boundaries
Pair @@@ matching with &@@ ordering for indexed top-k search. Ordering alone does not produce a useful ranked index scan. bm25_score reads the current ranked scan; use its query-qualified form, and table identity when required, if several ranked scans or partition children can be involved. The JSONB query builders include bm25_term, bm25_boolean, bm25_phrase, bm25_wildcard and bm25_boost. Multi-column index matching can differ from applying the operator as a scalar filter, including under row security; unsupported scoped or phrase filters raise an error. Installation is not trusted, relocation after installation is disabled, and PostgreSQL 19 CI is experimental. Follow the versioned format-compatibility and maintenance instructions before upgrading indexes.