# Multi-select facets

**URL:** https://discuss.elastic.co/t/multi-select-facets/3847
**Category:** Elasticsearch
**Created:** [January 31, 2011, 10:06am UTC](https://discuss.elastic.co/t/multi-select-facets/3847 "2011-01-31T10:06:14Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)
#### Post date: [January 31, 2011, 10:06am UTC](https://discuss.elastic.co/t/multi-select-facets/3847/1 "2011-01-31T10:06:14Z")

</div>

Hi,

as we discussed in these issues \*\* there seems to be a way in ES to  
enable 'multiselect' when faceting.

Now my problem is: I do not understand the difference between  
global=true and issue 650

I've tried different things but I cannot make multi faceting work with  
that ☹

Or maybe I didn't properly told you what I meant ... and this guy here  
can better explain the multiselect feature?

> **[Faceting and Multifaceting syntax in Solr 1.4](http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-in.html)**
>
> Introduction So you've installed Solr 1.4 and you've managed to get some data indexed. Now you're ready to have some fun with faceting. Fa...

  
(see multi faceting)

Kind Regards,  
Peter.

\*\*

> <https://github.com/elastic/elasticsearch/issues/499>

> <https://github.com/elastic/elasticsearch/issues/650>

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [January 31, 2011, 10:24am UTC](https://discuss.elastic.co/t/multi-select-facets/3847/2 "2011-01-31T10:24:53Z")

</div>

Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.

-shay.banon  
On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:

> Hi,
> 
> as we discussed in these issues \*\* there seems to be a way in ES to  
> enable 'multiselect' when faceting.
> 
> Now my problem is: I do not understand the difference between  
> global=true and issue 650
> 
> I've tried different things but I cannot make multi faceting work with  
> that ☹
> 
> Or maybe I didn't properly told you what I meant ... and this guy here  
> can better explain the multiselect feature?
> 
> [CraftyFella's Blog: Faceting and Multifaceting syntax in Solr 1.4](http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-in.html)  
> (see multi faceting)
> 
> Kind Regards,  
> Peter.
> 
> \*\*  
> [Multi-select facets · Issue #499 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/499)
> 
> [Search: Allow to pass a search filter, applying only on the query (and not on facets for example) · Issue #650 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/650)

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [January 31, 2011, 10:40am UTC](https://discuss.elastic.co/t/multi-select-facets/3847/3 "2011-01-31T10:40:38Z")

</div>

By they way, if I understood the example correctly, what you need to do is use 650, and provide the filter in the search request using the new filter element. The hits will be filtered using it, but the facets will not. If you still want certain facets to be filtered by it, you can simply add this filter to those facets as well using facet\_filter.  
On Monday, January 31, 2011 at 12:24 PM, Shay Banon wrote:

> Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.
> 
> -shay.banon  
> On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:
> 
> > Hi,
> > 
> > as we discussed in these issues \*\* there seems to be a way in ES to  
> > enable 'multiselect' when faceting.
> > 
> > Now my problem is: I do not understand the difference between  
> > global=true and issue 650
> > 
> > I've tried different things but I cannot make multi faceting work with  
> > that ☹
> > 
> > Or maybe I didn't properly told you what I meant ... and this guy here  
> > can better explain the multiselect feature?
> > 
> > [http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-in.html](http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-in.html)  
> > (see multi faceting)
> > 
> > Kind Regards,  
> > Peter.
> > 
> > \*\*  
> > [Multi-select facets · Issue #499 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/499)
> > 
> > [Search: Allow to pass a search filter, applying only on the query (and not on facets for example) · Issue #650 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/650)

---

<div class="post-metadata">

### Author: ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)
#### Post date: [January 31, 2011, 10:43am UTC](https://discuss.elastic.co/t/multi-select-facets/3847/4 "2011-01-31T10:43:18Z")

</div>

Thanks Shay for not giving up me 🙂

Imagine I have several facet fields using the term facet feature and  
the day faceting:

E.g. language, urlTitle and day (monday, tuesday, ...).

Now if the user clicks on one language it should filter the docs and  
it also should filter two facets: urlTitle and dateFacets BUT NOT the  
facet counts of language!

One more example: The same should happen if a user clicks on a day  
('monday') then the docs should be only from monday and the facet  
counts of urlTitle and language should also only be from monday. But  
the counts of the dayFacets should stay!! So that the user can 'see'  
the other days and can simply click then on tuesday to switch to  
tuesday, etc. So the dayFilter should NOT apply on the counts of the  
dayFacets but it should apply on the rest.

Is this possible?

Regards,  
Peter.

On 31 Jan., 11:24, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.
> 
> -shay.banon
> 
> On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:
> 
> > Hi,
> 
> > as we discussed in these issues \*\* there seems to be a way in ES to  
> > enable 'multiselect' when faceting.
> 
> > Now my problem is: I do not understand the difference between  
> > global=true and issue 650
> 
> > I've tried different things but I cannot make multi faceting work with  
> > that ☹
> 
> > Or maybe I didn't properly told you what I meant ... and this guy here  
> > can better explain the multiselect feature?
> 
> > [http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-](http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-)...  
> > (see multi faceting)
> 
> > Kind Regards,  
> > Peter.
> 
> > \*\*  
> > [Multi-select facets · Issue #499 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/499)
> 
> > [Search: Allow to pass a search filter, applying only on the query (and not on facets for example) · Issue #650 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/650)

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [January 31, 2011, 10:46am UTC](https://discuss.elastic.co/t/multi-select-facets/3847/5 "2011-01-31T10:46:21Z")

</div>

Yea, its possible. Using 650:

Pass the new filter element in the search request for the language (term filter), and add the same facet\_filter to the urlTitle and day facet, but don't pass it as a facet\_filter to language.

Make sense?

-shay.banon  
On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:

> Thanks Shay for not giving up me 🙂
> 
> Imagine I have several facet fields using the term facet feature and  
> the day faceting:
> 
> E.g. language, urlTitle and day (monday, tuesday, ...).
> 
> Now if the user clicks on one language it should filter the docs and  
> it also should filter two facets: urlTitle and dateFacets BUT NOT the  
> facet counts of language!
> 
> One more example: The same should happen if a user clicks on a day  
> ('monday') then the docs should be only from monday and the facet  
> counts of urlTitle and language should also only be from monday. But  
> the counts of the dayFacets should stay!! So that the user can 'see'  
> the other days and can simply click then on tuesday to switch to  
> tuesday, etc. So the dayFilter should NOT apply on the counts of the  
> dayFacets but it should apply on the rest.
> 
> Is this possible?
> 
> Regards,  
> Peter.
> 
> On 31 Jan., 11:24, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.
> > 
> > -shay.banon
> > 
> > On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:
> > 
> > > Hi,
> > 
> > > as we discussed in these issues \*\* there seems to be a way in ES to  
> > > enable 'multiselect' when faceting.
> > 
> > > Now my problem is: I do not understand the difference between  
> > > global=true and issue 650
> > 
> > > I've tried different things but I cannot make multi faceting work with  
> > > that ☹
> > 
> > > Or maybe I didn't properly told you what I meant ... and this guy here  
> > > can better explain the multiselect feature?
> > 
> > > [http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-](http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-)...  
> > > (see multi faceting)
> > 
> > > Kind Regards,  
> > > Peter.
> > 
> > > \*\*  
> > > [Multi-select facets · Issue #499 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/499)
> > 
> > > [Search: Allow to pass a search filter, applying only on the query (and not on facets for example) · Issue #650 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/650)

---

<div class="post-metadata">

### Author: ![Enrique\_Medina\_Monte](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@Enrique\_Medina\_Monte](https://discuss.elastic.co/u/Enrique_Medina_Monte)
#### Post date: [January 31, 2011, 4:26pm UTC](https://discuss.elastic.co/t/multi-select-facets/3847/6 "2011-01-31T16:26:21Z")

</div>

Shay,

What if, in your example in 650, "tags" is actually an array to support  
multiple values? Like this:

....  
"tags": ["green","blue","red"]  
....

Would the filter still apply?

Thanks.

On Mon, Jan 31, 2011 at 11:46 AM, Shay Banon  
[shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Yea, its possible. Using 650:
> 
> Pass the new filter element in the search request for the language (term  
> filter), and add the same facet\_filter to the urlTitle and day facet, but  
> don't pass it as a facet\_filter to language.
> 
> Make sense?
> 
> -shay.banon
> 
> On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:
> 
> Thanks Shay for not giving up me 🙂
> 
> Imagine I have several facet fields using the term facet feature and  
> the day faceting:
> 
> E.g. language, urlTitle and day (monday, tuesday, ...).
> 
> Now if the user clicks on one language it should filter the docs and  
> it also should filter two facets: urlTitle and dateFacets BUT NOT the  
> facet counts of language!
> 
> One more example: The same should happen if a user clicks on a day  
> ('monday') then the docs should be only from monday and the facet  
> counts of urlTitle and language should also only be from monday. But  
> the counts of the dayFacets should stay!! So that the user can 'see'  
> the other days and can simply click then on tuesday to switch to  
> tuesday, etc. So the dayFilter should NOT apply on the counts of the  
> dayFacets but it should apply on the rest.
> 
> Is this possible?
> 
> Regards,  
> Peter.
> 
> On 31 Jan., 11:24, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> Can you explain what you are trying to do, and I will explain how to do  
> that with 650 and the option of running global facets. It sounds like, from  
> what I understand, that you don't need global facets.
> 
> -shay.banon
> 
> On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:
> 
> Hi,
> 
> as we discussed in these issues \*\* there seems to be a way in ES to  
> enable 'multiselect' when faceting.
> 
> Now my problem is: I do not understand the difference between  
> global=true and issue 650
> 
> I've tried different things but I cannot make multi faceting work with  
> that ☹
> 
> Or maybe I didn't properly told you what I meant ... and this guy here  
> can better explain the multiselect feature?
> 
> [http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-](http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-)...  
> (see multi faceting)
> 
> Kind Regards,  
> Peter.
> 
> \*\*  
> [Multi-select facets · Issue #499 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/499)
> 
> [Search: Allow to pass a search filter, applying only on the query (and not on facets for example) · Issue #650 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/650)

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [January 31, 2011, 4:33pm UTC](https://discuss.elastic.co/t/multi-select-facets/3847/7 "2011-01-31T16:33:37Z")

</div>

Yep, it will work as expected.  
On Monday, January 31, 2011 at 6:26 PM, Enrique Medina Montenegro wrote:

> Shay,
> 
> What if, in your example in 650, "tags" is actually an array to support multiple values? Like this:
> 
> ....  
> "tags": ["green","blue","red"]  
> ....
> 
> Would the filter still apply?
> 
> Thanks.
> 
> On Mon, Jan 31, 2011 at 11:46 AM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com) wrote:
> 
> > Yea, its possible. Using 650:
> > 
> > Pass the new filter element in the search request for the language (term filter), and add the same facet\_filter to the urlTitle and day facet, but don't pass it as a facet\_filter to language.
> > 
> > Make sense?
> > 
> > -shay.banon  
> > On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:
> > 
> > > Thanks Shay for not giving up me 🙂
> > > 
> > > Imagine I have several facet fields using the term facet feature and  
> > > the day faceting:
> > > 
> > > E.g. language, urlTitle and day (monday, tuesday, ...).
> > > 
> > > Now if the user clicks on one language it should filter the docs and  
> > > it also should filter two facets: urlTitle and dateFacets BUT NOT the  
> > > facet counts of language!
> > > 
> > > One more example: The same should happen if a user clicks on a day  
> > > ('monday') then the docs should be only from monday and the facet  
> > > counts of urlTitle and language should also only be from monday. But  
> > > the counts of the dayFacets should stay!! So that the user can 'see'  
> > > the other days and can simply click then on tuesday to switch to  
> > > tuesday, etc. So the dayFilter should NOT apply on the counts of the  
> > > dayFacets but it should apply on the rest.
> > > 
> > > Is this possible?
> > > 
> > > Regards,  
> > > Peter.
> > > 
> > > On 31 Jan., 11:24, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > > 
> > > > Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.
> > > > 
> > > > -shay.banon
> > > > 
> > > > On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:
> > > > 
> > > > > Hi,
> > > > 
> > > > > as we discussed in these issues \*\* there seems to be a way in ES to  
> > > > > enable 'multiselect' when faceting.
> > > > 
> > > > > Now my problem is: I do not understand the difference between  
> > > > > global=true and issue 650
> > > > 
> > > > > I've tried different things but I cannot make multi faceting work with  
> > > > > that ☹
> > > > 
> > > > > Or maybe I didn't properly told you what I meant ... and this guy here  
> > > > > can better explain the multiselect feature?
> > > > 
> > > > > [http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-](http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-)...  
> > > > > (see multi faceting)
> > > > 
> > > > > Kind Regards,  
> > > > > Peter.
> > > > 
> > > > > \*\*  
> > > > > [Multi-select facets · Issue #499 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/499)
> > > > 
> > > > > [Search: Allow to pass a search filter, applying only on the query (and not on facets for example) · Issue #650 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/650)

---

<div class="post-metadata">

### Author: ![Enrique\_Medina\_Monte](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@Enrique\_Medina\_Monte](https://discuss.elastic.co/u/Enrique_Medina_Monte)
#### Post date: [January 31, 2011, 4:47pm UTC](https://discuss.elastic.co/t/multi-select-facets/3847/8 "2011-01-31T16:47:48Z")

</div>

When is 0.15 planned then?

On Mon, Jan 31, 2011 at 5:33 PM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Yep, it will work as expected.
> 
> On Monday, January 31, 2011 at 6:26 PM, Enrique Medina Montenegro wrote:
> 
> Shay,
> 
> What if, in your example in 650, "tags" is actually an array to support  
> multiple values? Like this:
> 
> ....  
> "tags": ["green","blue","red"]  
> ....
> 
> Would the filter still apply?
> 
> Thanks.
> 
> On Mon, Jan 31, 2011 at 11:46 AM, Shay Banon \<[shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)
> 
> > wrote:
> 
> > Yea, its possible. Using 650:
> > 
> > Pass the new filter element in the search request for the language (term  
> > filter), and add the same facet\_filter to the urlTitle and day facet, but  
> > don't pass it as a facet\_filter to language.
> > 
> > Make sense?
> > 
> > -shay.banon
> > 
> > On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:
> > 
> > Thanks Shay for not giving up me 🙂
> > 
> > Imagine I have several facet fields using the term facet feature and  
> > the day faceting:
> > 
> > E.g. language, urlTitle and day (monday, tuesday, ...).
> > 
> > Now if the user clicks on one language it should filter the docs and  
> > it also should filter two facets: urlTitle and dateFacets BUT NOT the  
> > facet counts of language!
> > 
> > One more example: The same should happen if a user clicks on a day  
> > ('monday') then the docs should be only from monday and the facet  
> > counts of urlTitle and language should also only be from monday. But  
> > the counts of the dayFacets should stay!! So that the user can 'see'  
> > the other days and can simply click then on tuesday to switch to  
> > tuesday, etc. So the dayFilter should NOT apply on the counts of the  
> > dayFacets but it should apply on the rest.
> > 
> > Is this possible?
> > 
> > Regards,  
> > Peter.
> > 
> > On 31 Jan., 11:24, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > Can you explain what you are trying to do, and I will explain how to do  
> > that with 650 and the option of running global facets. It sounds like, from  
> > what I understand, that you don't need global facets.
> > 
> > -shay.banon
> > 
> > On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:
> > 
> > Hi,
> > 
> > as we discussed in these issues \*\* there seems to be a way in ES to  
> > enable 'multiselect' when faceting.
> > 
> > Now my problem is: I do not understand the difference between  
> > global=true and issue 650
> > 
> > I've tried different things but I cannot make multi faceting work with  
> > that ☹
> > 
> > Or maybe I didn't properly told you what I meant ... and this guy here  
> > can better explain the multiselect feature?
> > 
> > [http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-](http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-)...  
> > (see multi faceting)
> > 
> > Kind Regards,  
> > Peter.
> > 
> > \*\*  
> > [Multi-select facets · Issue #499 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/499)
> > 
> > [Search: Allow to pass a search filter, applying only on the query (and not on facets for example) · Issue #650 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/650)

---

<div class="post-metadata">

### Author: ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)
#### Post date: [January 31, 2011, 7:17pm UTC](https://discuss.elastic.co/t/multi-select-facets/3847/9 "2011-01-31T19:17:43Z")

</div>

Hmmh, but what is the difference of global=true and additional filters  
for facets?

On 31 Jan., 11:46, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Yea, its possible. Using 650:
> 
> Pass the new filter element in the search request for the language (term filter), and add the same facet\_filter to the urlTitle and day facet, but don't pass it as a facet\_filter to language.
> 
> Make sense?
> 
> -shay.banon
> 
> On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:
> 
> > Thanks Shay for not giving up me 🙂
> 
> > Imagine I have several facet fields using the term facet feature and  
> > the day faceting:
> 
> > E.g. language, urlTitle and day (monday, tuesday, ...).
> 
> > Now if the user clicks on one language it should filter the docs and  
> > it also should filter two facets: urlTitle and dateFacets BUT NOT the  
> > facet counts of language!
> 
> > One more example: The same should happen if a user clicks on a day  
> > ('monday') then the docs should be only from monday and the facet  
> > counts of urlTitle and language should also only be from monday. But  
> > the counts of the dayFacets should stay!! So that the user can 'see'  
> > the other days and can simply click then on tuesday to switch to  
> > tuesday, etc. So the dayFilter should NOT apply on the counts of the  
> > dayFacets but it should apply on the rest.
> 
> > Is this possible?
> 
> > Regards,  
> > Peter.
> 
> > On 31 Jan., 11:24, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > > Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.
> 
> > > -shay.banon
> 
> > > On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:
> 
> > > > Hi,
> 
> > > > as we discussed in these issues \*\* there seems to be a way in ES to  
> > > > enable 'multiselect' when faceting.
> 
> > > > Now my problem is: I do not understand the difference between  
> > > > global=true and issue 650
> 
> > > > I've tried different things but I cannot make multi faceting work with  
> > > > that ☹
> 
> > > > Or maybe I didn't properly told you what I meant ... and this guy here  
> > > > can better explain the multiselect feature?
> 
> > > > [http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-](http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-)...  
> > > > (see multi faceting)
> 
> > > > Kind Regards,  
> > > > Peter.
> 
> > > > \*\*  
> > > > [Multi-select facets · Issue #499 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/499)
> 
> > > > [Search: Allow to pass a search filter, applying only on the query (and not on facets for example) · Issue #650 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/650)

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [January 31, 2011, 7:28pm UTC](https://discuss.elastic.co/t/multi-select-facets/3847/10 "2011-01-31T19:28:05Z")

</div>

With global set to true, it will run over the whole hits, and use the filter to filter out results. This means you will need to add the original query as a filter, possibly ANDing it with another filter, to get the same affect as the option to pass filter in 650.  
On Monday, January 31, 2011 at 9:17 PM, Karussell wrote:

> Hmmh, but what is the difference of global=true and additional filters  
> for facets?
> 
> On 31 Jan., 11:46, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Yea, its possible. Using 650:
> > 
> > Pass the new filter element in the search request for the language (term filter), and add the same facet\_filter to the urlTitle and day facet, but don't pass it as a facet\_filter to language.
> > 
> > Make sense?
> > 
> > -shay.banon
> > 
> > On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:
> > 
> > > Thanks Shay for not giving up me 🙂
> > 
> > > Imagine I have several facet fields using the term facet feature and  
> > > the day faceting:
> > 
> > > E.g. language, urlTitle and day (monday, tuesday, ...).
> > 
> > > Now if the user clicks on one language it should filter the docs and  
> > > it also should filter two facets: urlTitle and dateFacets BUT NOT the  
> > > facet counts of language!
> > 
> > > One more example: The same should happen if a user clicks on a day  
> > > ('monday') then the docs should be only from monday and the facet  
> > > counts of urlTitle and language should also only be from monday. But  
> > > the counts of the dayFacets should stay!! So that the user can 'see'  
> > > the other days and can simply click then on tuesday to switch to  
> > > tuesday, etc. So the dayFilter should NOT apply on the counts of the  
> > > dayFacets but it should apply on the rest.
> > 
> > > Is this possible?
> > 
> > > Regards,  
> > > Peter.
> > 
> > > On 31 Jan., 11:24, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> > 
> > > > Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.
> > 
> > > > -shay.banon
> > 
> > > > On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:
> > 
> > > > > Hi,
> > 
> > > > > as we discussed in these issues \*\* there seems to be a way in ES to  
> > > > > enable 'multiselect' when faceting.
> > 
> > > > > Now my problem is: I do not understand the difference between  
> > > > > global=true and issue 650
> > 
> > > > > I've tried different things but I cannot make multi faceting work with  
> > > > > that ☹
> > 
> > > > > Or maybe I didn't properly told you what I meant ... and this guy here  
> > > > > can better explain the multiselect feature?
> > 
> > > > > [http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-](http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-)...  
> > > > > (see multi faceting)
> > 
> > > > > Kind Regards,  
> > > > > Peter.
> > 
> > > > > \*\*  
> > > > > [Multi-select facets · Issue #499 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/499)
> > 
> > > > > [Search: Allow to pass a search filter, applying only on the query (and not on facets for example) · Issue #650 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/issue/650)

---

<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, 4:13am UTC](https://discuss.elastic.co/t/multi-select-facets/3847/11 "2017-07-06T04:13:05Z")

</div>


