Can I use the filter in multi search?


(yyh3011) #1

I have a requirement need to use multi search, but the search has same
conditions except one, so I hope I can search them using the same
conditions and using filter on different condition, so I think the
performance is better, does anyone have any suggest?

thanks
Johnson

--
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/d26ffc57-72ec-465d-8d2a-2db0e4952dc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Adrien Grand) #2

This will work fine by default: filters are cached, so the first query will
load the set of matching documents into the cache and the other queries
will be able to reuse this cache entry.

On Tue, Apr 15, 2014 at 10:21 AM, yyh3011@gmail.com wrote:

I have a requirement need to use multi search, but the search has same
conditions except one, so I hope I can search them using the same
conditions and using filter on different condition, so I think the
performance is better, does anyone have any suggest?

thanks
Johnson

--
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/d26ffc57-72ec-465d-8d2a-2db0e4952dc1%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/d26ffc57-72ec-465d-8d2a-2db0e4952dc1%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
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/CAL6Z4j761J4DP3amKNJxVa2ytFAqCBc9ME3862M3FV1BoC%2B4Tg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3