Min_score on filtered query?

Hi,

Is it possible to use a min_query within a filtered query. So not on the whole query object itself, but on the query within the filtered query. I've tried it, but only get error. This is an example of the code I'm using to do the query:

Am I doing anything wrong or is this not supposed to work?

Thanks

I don't think it's meant to work -- min_score is defined on the Search API,
not the query DSL. I'm interested in this capability, too.

A workaround might be to use custom_score as a poor man's filter -- at each
point where you want to do a min_score, wrap a custom score that sets score
to 0 if the score is below the threshold. Bubble the zeroes up, and set
min_score to 0 on the search request.

On Monday, 9 July 2012 05:30:31 UTC-4, marcus.1....@nokia.com wrote:

Hi,

Is it possible to use a min_query within a filtered query. So not on the
whole query object itself, but on the query within the filtered query.
I've
tried it, but only get error. This is an example of the code I'm using to
do
the query:

Min score within filtered query · GitHub

Am I doing anything wrong or is this not supposed to work?

Thanks

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Min-score-on-filtered-query-tp4020225.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.