Is there a limit to the value of _score without the use of boost in a search query ?
I need to return the score of each search results in a [0, 1] interval, and I'm wondering if I can just divide the score returned by Elasticsearch by 100 or something.
Elasticsearch/Lucene scores are relative only to the specific query used to
generate them and cannot be normalized to other queries or to a range. You
can use aggregations to calculate the min/max scores are normalize the
values on the client side.
Are you saying that it's not possible to get a score between 0 and 1, while having this score relative to all the documents (rather than relative to the best score for the matched 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.