Tomo_M
(Tomohiro Mitani)
February 12, 2022, 1:33pm
3
I found several related posts.
Have you see them?
Hi
When executing match queries with fuzziness applied we are seeing exact matches have the same score as fuzzy matches. I have come across suggested solutions to promote exact matches by including additional queries which carry out an exact match and boosting those queries, these are here Custom score for fuzzy matching based on Levenshtein distance score and here Fuzziness & score computation .
We are currently using Elasticsearch 7.4, is this still the recommended solution or has anything f…
The match query accepts a fuzziness parameter which allows you to do fuzzy matching based on the Damerau-Levenshtein edit distance (see the explanation for the fuzziness parameter in our docs here ).
Now, two things to keep in mind with fuzziness: the maximum edit distance that Elasticsearch supports is 2, so Smith and SSmithhh will never be a match. And, the default scoring is not quite how you want it to be.
However, if a maximum edit distance of 2 is enough for your use case, then you can u…