I could not extract from this post what your actual problem is. Can you extend on that? Is it the score calculation or the results? Can you also take your time and create a reproducible example?
I want to mix up the default '_score' with a field value in the doc(by some weights). I want to normalise the field value effect by finding maximum of field value in the filtered result.
For eg: The field_a contains value from 1 to 100000. After the filters, if the max_score of the field is 5000, then
by the above formula, the document contains the max_score & high relevancy will be on the top. and followed by the rest of the documents.
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.