Custom score for fuzzy matching based on Levenshtein distance score

There is no out of the box functionality that gives you a similarity score like that, as far as I know.

You'd have to implement this yourself as a script that you could use as a script_score function in the function score query (which is likely going to be very slow). A better way could be to implement this as a Java plugin.

Either way, you'll be looking at writing some code, unless someone else on this forum has a better idea.

2 Likes