Query Suggestions with Lucene
summary
Lucene adds several concrete suggester implementations: FST-based suggesters (small, RAM-resident byte-array indexes), a weighted FST for 32-bit scoring, an analyzing suggester that reuses Lucene analyzers, and a fuzzy suggester that intersects Levenshtein automata with the FST to fix typos. SoundCloud and Yelp deploy these, use geohash-prefixing for location, and see suggest QPS about 3x search plus benchmarks showing tens to hundreds of thousands QPS; builders trade heavier index-time work and pruning for sub-5–50ms live latency.
AI-written summary · about
chapters (18)
- 0:00Introduction and setup
- 1:57What are query suggestions
- 3:00Speed challenges in suggestions
- 5:09Ranking and filtering suggestions
- 6:33Suggestions as navigation
- 9:43Yelp’s location-based suggestions
- 11:50Lucene’s suggester features
- 15:04FST suggester overview
- 16:08Weighted FST suggester
- 17:10Analyzing suggester
- 17:52Fuzzy suggester introduction
- 21:03Why suggesters are fast
- 23:12Suggesters vs inverted index
- 25:20Future of suggestions
- 27:06Infrastructure recommendations
- 27:48Importance of weighting
- 28:52Detecting spam in suggestions
- 30:46Q&A session
