i am looking for a way to generate new fields/scores on each search result and am lost whether this is possible at all:
Given a document and a query i want to (re)score the documents based on parameters (for example, the levenshtein distance between field1 and parameter1). It would be best to put the score in a new field in the result but overwriting the ES-score would be ok as well.
Furthermore i'd like to add an explanation to the result (again, overwriting explanations or adding a new field with an explanation).
Modifying the explain would require a custom Lucene query plugin, and a
corresponding Elasticsearch query builder plugin. I have a blog post about
the Lucene part
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.