1
Understanding the BM25 full text search algorithm
BM25 is a widely used algorithm for full text search. I wanted to understand how it works, so here is my attempt at understanding by re-explaining.
Hi 👋, I'm Evan Schwartz. I'm an ideas person, inventor, and software engineer (Rust/Typescript). Currently, I'm working on a personalized content feed called 🐿️ Scour.
Visit emschwartz.me → RSS feedOn Hacker News Nov 2024 – Sep 2025
BM25 is a widely used algorithm for full text search. I wanted to understand how it works, so here is my attempt at understanding by re-explaining.
Understanding query planner quirks yielded a ~35% speedup.