Elasticsearch is Dead, Long Live Lexical Search
Dec 17, 2024James Luan

Summary
This post introduces Sparse-BM25 as a native lexical search capability in Milvus 2.5, building upon previous hybrid search features. It details the implementation using Tantivy for tokenization, distributed vocabulary management, and TF-IDF for sparse vector generation. The post highlights advantages over Elasticsearch, including algorithm flexibility (e.g., TW-BERT), cost efficiency through combined inverted index and dense embedding compression, and optimized long query performance using graph indices. It positions Milvus as a unified solution for both lexical and semantic search in RAG applications.
More from the Multilingual Full-Text Search trail
- How to Fix Hermes Agent's Learning Loop with Milvus 2.6 Hybrid Search
- Phrase Match with Slop in Milvus 2.6: How to Improve Phrase-Level Full-Text Search Accuracy
- Tokenize Smarter, Retrieve Better: A Deep Dive into Milvus Analyzer for Full-Text Search
- How Milvus 2.6 Upgrades Multilingual Full-Text Search at Scale
- Full-Text Search in Milvus - What's Under the Hood