I have a custom analyzer which consists of several char_filter
When I have indexed "walter" and "walther"
and search for "walther" I would expect to have "walther" result to be of higher score than "walter". But it has the same score. How can I boost the exact match?
I think you meant to post this in the Elasticsearch community forum rather than the Enterprise Search one. I've gone ahead and moved this post, but please correct me if I'm wrong.
I found several related posts.
Have you see them?
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…
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…
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.