How can you know if a fuzzy search has exact matches in returned results

If you are using the "fuzziness" parameter from "query_string" is there any way for you to know if you have any exact match in your results?
My main problem is to figure out what searches would fail (end with 0 results) if I had not used the fuzziness. Any advices?

I would try using a boolean query here with two should clauses (with default minimum_should_match = 1):

  1. Should be an exact match
  2. Should be a fuzzy match

Use named queries to see if sub-query 1 matched.

1 Like

Hi Loren,

Thanks a lot! You had a brilliant method here :slight_smile:

Great! Glad to be of help.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.