Yehosef
Yehosef

Reputation: 18597

how to make elasticsearch suggest a better search term when the one given is not misspelled?

If someone is searching for "kitchen sink" but mistakenly types in "kitchen ink" (which is a valid search and has results), how would I suggest a "did you mean" for "kitchen sink".

I was thinking I could do fuzzy permutations but that might get intensive - eg. maybe they meant "kitchen pink" or "kitchen link" etc.

Upvotes: 0

Views: 41

Answers (1)

Justin Warkentin
Justin Warkentin

Reputation: 10241

Have you looked at the phrase suggester? That's what it's designed for.

Upvotes: 1

Related Questions