Filter on score


(Joanna Kochaniak) #1

Is there any way in ES to create a filter based on a document's score in
some query? I know min_score allows me to do this at the search request
level, but I basically need that functionality at the filter level. If query
filterhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-filter.htmlhad a min_score parameter it would work. Or if a range
filterhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-range-filter.htmllet me use a document's score, not just fields.

Alternatively, is there any way to access the score in a script filterhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-script-filter.html?
I've tried _score, doc['_score'].value, and doc.score, but none of these
work.

--
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.


(system) #2