Custom_filters_score query performance


(venku123) #1

An Elasticsearch filtered query with a custom filter score query is
expected to do scoring process for the documents returned by the filter.
Instead the custom filter score query was fetching all documents and
evaluating each of those document against the filter set.

I did some analysis and have found the reasons for this behavior. I have
documented my findings in the under mentioned link. Hope this will benefit
those using custom_filters_score query.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9b3980d5-e0c6-43b6-8c61-2d42ebbfa257%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Alexander Reelsen) #2

Hey

minor note: the custom_filters_score is deprecated and replaced by function
score, see
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#_relation_to_literal_custom_boost_literal_literal_custom_score_literal_and_literal_custom_filters_score_literal

In that context a filter may only be used for identifiying documents to be
applied to the function score instead of filtering before, so make sure you
are settings your filters correctly in order to not execute the function
score over each document.

--Alex

On Tue, Mar 18, 2014 at 6:29 AM, venku123@gmail.com wrote:

An Elasticsearch filtered query with a custom filter score query is
expected to do scoring process for the documents returned by the filter.
Instead the custom filter score query was fetching all documents and
evaluating each of those document against the filter set.

I did some analysis and have found the reasons for this behavior. I have
documented my findings in the under mentioned link. Hope this will benefit
those using custom_filters_score query.

http://readmytechstuff.blogspot.com/

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/9b3980d5-e0c6-43b6-8c61-2d42ebbfa257%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/9b3980d5-e0c6-43b6-8c61-2d42ebbfa257%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8zrrkSHpP_btCD3ovHNAhj1fDo9rsw5OBLhmyHCFCJGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3