Skip to content
Tech News
← Back to articles

Show HN: How This Graybeard Built the Fastest and Freest Postgres BM25 Search

read original get PostgreSQL BM25 Extension → more articles
Why This Matters

This article introduces pg_textsearch, a powerful extension for PostgreSQL that enables fast, scalable BM25-based text search with configurable ranking parameters. It enhances PostgreSQL's native capabilities, supporting multiple languages, large datasets, and parallel indexing, making it a significant advancement for developers and organizations relying on efficient search functionalities within their databases.

Key Takeaways

Modern ranked text search for Postgres.

Simple syntax: ORDER BY content <@> 'search terms'

BM25 ranking with configurable parameters (k1, b)

Works with Postgres text search configurations (english, french, german, etc.)

Fast top-k queries via Block-Max WAND optimization

Parallel index builds for large tables

Supports partitioned tables

Best in class performance and scalability

🚀 Status: v1.0.0 - Production ready. See ROADMAP.md for upcoming features.

Historical note

... continue reading