Hi ES team
Is it possible to use the value of the computed score(based on the boost
supplied) and filter records based on the score value and a field defined
in the document.
Eg: The score computed is 10 and my json doc has a field called
"maxscore":15.
Can we return only the docs when score >= doc[maxscore]?
Beware of relying on absolute values for the _score. The _score is
normalized, and may not be what you expect. That said, you could use a
custom_score script to do something like: "(_score < doc['maxscore']) ? 0
: _score)" then set a min_score of (eg 0.1) on your search, which will
filter out the docs with score zero
Hi ES team
Is it possible to use the value of the computed score(based on the
boost supplied) and filter records based on the score value and a field
defined in the document.
Eg: The score computed is 10 and my json doc has a field called
"maxscore":15.
Can we return only the docs when score >= doc[maxscore]?
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.