Suggest corrected queries on low-result or zero-result searches.
Approach (pick one or both)
- Edit-distance search over index vocabulary for small vocabularies
- BK-tree for O(log N) approximate string matching within the vocabulary
Trigger condition
- Zero results, or fewer than some threshold (e.g. < 3 results)
- Display as "Did you mean: ?" with a clickable link
Notes
- Vocabulary is already available in
document_freqs at runtime
- Backend should return the suggestion alongside results so the frontend does not need a second request
Suggest corrected queries on low-result or zero-result searches.
Approach (pick one or both)
Trigger condition
Notes
document_freqsat runtime