Hi,
I'm trying to figure out how i can sort the completion suggester when using fuzziness.
I have 4 documents
- title: tennis
- title: tee
- title: teen
- title: terrace
When people enter 'tee' and fuzziness: 1, tennis is now on top. What i want is the suggestions that still have an 'exact' match be on top, so 'tee' and 'teen' should be on top. I thought about having 2 suggestions, 1 with no fuzziness and the other with fuzziness: 1. But that requires deduplication which takes time.
Does anyone have an idea on how to do this?
using elasticsearch 5.1.1.
Thanks,
Maarten