Score based on Levenshtein distance in the results

Is there a more efficient way to get the Levenshtein-distance similarity as the score (based on 1 field value) rather than using match query and computing it in the application code after getting the results from Elasticsearch?
I couldn't find a function_score or OOB script that returns the score based on just the Levenshtein similarity eliminating the TF/IDF though I believe it's already computed during the search.

1 Like

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