# Can I use the filter in multi search?

**URL:** <https://discuss.elastic.co/t/can-i-use-the-filter-in-multi-search/17021>\
**Category:** Elasticsearch\
**Created:** [April 15, 2014, 8:21am UTC](https://discuss.elastic.co/t/can-i-use-the-filter-in-multi-search/17021 "2014-04-15T08:21:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yyh3011](https://avatars.discourse-cdn.com/v4/letter/y/6de8d8/32.png) [@yyh3011](https://discuss.elastic.co/u/yyh3011)\
**Post date:** [April 15, 2014, 8:21am UTC](https://discuss.elastic.co/t/can-i-use-the-filter-in-multi-search/17021/1 "2014-04-15T08:21:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [April 15, 2014, 10:34am UTC](https://discuss.elastic.co/t/can-i-use-the-filter-in-multi-search/17021/2 "2014-04-15T10:34:33Z")

</div>

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](mailto: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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/d26ffc57-72ec-465d-8d2a-2db0e4952dc1%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/d26ffc57-72ec-465d-8d2a-2db0e4952dc1%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://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](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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j761J4DP3amKNJxVa2ytFAqCBc9ME3862M3FV1BoC%2B4Tg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j761J4DP3amKNJxVa2ytFAqCBc9ME3862M3FV1BoC%2B4Tg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:35am UTC](https://discuss.elastic.co/t/can-i-use-the-filter-in-multi-search/17021/3 "2017-07-06T01:35:49Z")

</div>

Closed on July 6, 2017, 1:35am UTC


