Score value in elastic search

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]?

Thanks
Sheeba

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

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

On 17 May 2013 23:55, Sheeba George sheeba.george@gmail.com wrote:

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]?

Thanks
Sheeba

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.