I am using elasticsearch 5.5 and I am trying to implement my own scoring algorithm. I use match query with fuzziness 2 and I need terms that match to my query in my java custom acore algorithm to calculate the edit distance and come up with a custom score.
I found lot of good examples of native scripts to do this,but since native since are deperecated in 5.5 I need to do this in scrpting engine.Does anyone have good examples of such custom score implementation via scripting engine?
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting-engine.html
Native script example:
https://github.com/ixxi-mobility/elasticsearch-editdistance-scoring