Hi Patrick, actually, there are two types of filters: filters inside queries are applied before the query, filters outside the query are applied after the query:
http://stackoverflow.com/questions/17749138/queries-vs-filters-order-of-execution#tab-top That is why they have been renamed to post_filter in ES 1.0: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_search_requests.html#_search_requests To answer your question: I am not sure, whether it is possible to filter results by score. I guess it could be possible using a script filter, but in a quick test I didn't find a way to access the score value in the filter script: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-script-filter.html#query-dsl-script-filter But you shouldn't do it anyway as the scores might vary strongly between searches. Scores are only meaningful relative to each other within one search result. So it does not make sense to define an absolute limit. Best regards, Hannes On 27.04.2014 20:42, Patrick Proniewski wrote: > Hannes, > > Thank you very much for this detailed answer. You are right, I'm > using the default mapping (I was not even aware of mappings as I'm > very new to ES). I'll read the links you've provided ASAP and see > what's best for me (and for my future users). I've already taken a > look at the blog post. It uses concepts I'll have to learn before > trying to understand how ES really works on the inside. > > I've noticed that my first example (a79.e.ipso1978.fr w/o quotes in > Kibana returns 21048 results) was in fact interesting, because the > 21048 results were ordered by score, and this score was significantly > higher for the 4 meaningful results I was looking for. Is there any > way to filter result in Kibana using a score range? My attempts in > Sense failed miserably but I guess that's because filtering occurs > before results are known. > > Thanks again for your very helpful reply. > > Patrick -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/535EAC1C.2020804%40hkorte.com. For more options, visit https://groups.google.com/d/optout.
