How It Works
- Text parsing: Your query is broken into searchable terms
- Index lookup: The system finds documents containing those terms
- Ranking: Results are ordered by relevance (term frequency, document length, etc.)
When to Use Keyword Search
| Scenario | Why Keyword Search Works |
|---|---|
| Searching for specific terms | Exact match on product names, codes, IDs |
| Error codes and identifiers | Precise matching without semantic interpretation |
| Technical terminology | Users know the exact terms to search |
| Structured data queries | Matching specific field values |
Configuration
Basic Setup
With Reranking
Add a reranker to improve result ordering:Example
keyword_search.py