Sorted queries


(slushi) #1

I am executing search requests with a sort defined. In this case, from a
performance perspective is it better to do a match_all query and then add
the query as a filter or is it basically equivalent? Should I wrap the
query in a constant score query to avoid any scoring overhead?

--
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/2a211811-4f3a-427b-bf0a-ffd32e9697bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Ivan Brusic) #2

A match_all query or a constant score query would be equivalent.

--
Ivan

On Sun, May 11, 2014 at 10:31 PM, slushi kireetreddy@gmail.com wrote:

I am executing search requests with a sort defined. In this case, from a
performance perspective is it better to do a match_all query and then add
the query as a filter or is it basically equivalent? Should I wrap the
query in a constant score query to avoid any scoring overhead?

--
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/2a211811-4f3a-427b-bf0a-ffd32e9697bd%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/2a211811-4f3a-427b-bf0a-ffd32e9697bd%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/CALY%3DcQC5LM10--NYy7XSRNxRqTcYhSpUvRptbD%2BWe8FbkJBbaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3