# Multi field facets

**URL:** <https://discuss.elastic.co/t/multi-field-facets/12826>\
**Category:** Elasticsearch\
**Created:** [July 17, 2013, 1:26pm UTC](https://discuss.elastic.co/t/multi-field-facets/12826 "2013-07-17T13:26:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anasjaghoub](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@anasjaghoub](https://discuss.elastic.co/u/anasjaghoub)\
**Post date:** [July 17, 2013, 1:26pm UTC](https://discuss.elastic.co/t/multi-field-facets/12826/1 "2013-07-17T13:26:22Z")

</div>

Hello Dears,

This is my first post here at this forum, I hope I get your help for my  
question.

I've a db structure of the following:

1. artciles  
id, title, description, country\_id, category\_id , insert\_date

2. country  
id, name

3. category  
id, name, etc.

Article belongs to a country via country\_id and belongs to category via  
category\_id.

I've created an index called articles\_category\_country that indexes each  
article with with its category and country like this:  
article {  
id, title, description, country\_id, category\_id, insert\_date, country {id,  
name}, category {id, name}  
}

I need to generate a report that shows number of articles per month per  
country per category

In SQL we do it like this: SELECT article.insert\_date, country.name as  
"country\_name", category.name "category\_name" , count(\*) total  
FROM article INNER JOIN country ON country.id = article.country\_id INNER  
JOIN category ON category.id = article.category\_id  
GROUP BY article.insert\_date , country\_name, category\_name ORDER BY total  
DESC

I tried to do the same thing using elastic search using the following  
query:

{  
"facets": {  
"by\_date": {  
"date\_histogram": {  
"field": "record\_insert\_date",  
"interval": "month"  
}  
},  
"by\_country": {  
"terms": {  
"field": "posts.countries.name",  
"all\_terms": true  
}  
},  
"by\_cat": {  
"terms": {  
"script\_field": "\_source.posts.categories\_new.name",  
"all\_terms": true, "order": "term"  
}  
}

}  
}

The problem is that each facet criteria returns its own result of  
aggregations , my question is: How can I get aggregations for my case  
per month, country, category

I'd expect the results some thing like this:

2012-Jan Jordan Sport 5000 article  
2012 Jan Jordan Technology 3000 article

2012 Jan USA Sport 1000 article  
2012 Jan USA Technology 500 article

and so on.

Kindly Advice

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nabloom](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@Nabloom](https://discuss.elastic.co/u/Nabloom)\
**Post date:** [July 17, 2013, 10:26pm UTC](https://discuss.elastic.co/t/multi-field-facets/12826/2 "2013-07-17T22:26:45Z")

</div>

Hi,

For moment there is no convenient way to do it in ES, i believe this is  
planned in the 1.0 release  
([Support Hierarchical Facets · Issue #1076 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1076))  
But a hacky way to do it is to use term facet with a script field  
containing the concatenation of your 3 fields (for ex.  
2012Jan\_Jordan\_Sport) and then parse the results to deconstruct your fields.

Nabloom

On Wednesday, July 17, 2013 3:26:22 PM UTC+2, Anas Jaghoub wrote:

> Hello Dears,
> 
> This is my first post here at this forum, I hope I get your help for my  
> question.
> 
> I've a db structure of the following:
> 
> 1. artciles  
> id, title, description, country\_id, category\_id , insert\_date
> 
> 2. country  
> id, name
> 
> 3. category  
> id, name, etc.
> 
> Article belongs to a country via country\_id and belongs to category via  
> category\_id.
> 
> I've created an index called articles\_category\_country that indexes each  
> article with with its category and country like this:  
> article {  
> id, title, description, country\_id, category\_id, insert\_date, country {id,  
> name}, category {id, name}  
> }
> 
> I need to generate a report that shows number of articles per month per  
> country per category
> 
> In SQL we do it like this: SELECT article.insert\_date, country.name as  
> "country\_name", category.name "category\_name" , count(\*) total  
> FROM article INNER JOIN country ON country.id = article.country\_id INNER  
> JOIN category ON category.id = article.category\_id  
> GROUP BY article.insert\_date , country\_name, category\_name ORDER BY total  
> DESC
> 
> I tried to do the same thing using Elasticsearch using the following  
> query:
> 
> {  
> "facets": {  
> "by\_date": {  
> "date\_histogram": {  
> "field": "record\_insert\_date",  
> "interval": "month"  
> }  
> },  
> "by\_country": {  
> "terms": {  
> "field": "posts.countries.name",  
> "all\_terms": true  
> }  
> },  
> "by\_cat": {  
> "terms": {  
> "script\_field": "\_source.posts.categories\_new.name",  
> "all\_terms": true, "order": "term"  
> }  
> }
> 
> }  
> }
> 
> The problem is that each facet criteria returns its own result of  
> aggregations , my question is: How can I get aggregations for my case  
> per month, country, category
> 
> I'd expect the results some thing like this:
> 
> 2012-Jan Jordan Sport 5000 article  
> 2012 Jan Jordan Technology 3000 article
> 
> 2012 Jan USA Sport 1000 article  
> 2012 Jan USA Technology 500 article
> 
> and so on.
> 
> Kindly Advice

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![kajal](https://avatars.discourse-cdn.com/v4/letter/k/7993a0/32.png) [@kajal](https://discuss.elastic.co/u/kajal)\
**Post date:** [July 19, 2013, 2:53pm UTC](https://discuss.elastic.co/t/multi-field-facets/12826/3 "2013-07-19T14:53:58Z")

</div>

I don't see an option of script field for term stat facet, however I see  
that for other facet. do you have the sample query that you think will work  
using script field for term start facet?

On Wednesday, July 17, 2013 6:26:45 PM UTC-4, Nabloom wrote:

> Hi,
> 
> For moment there is no convenient way to do it in ES, i believe this is  
> planned in the 1.0 release (  
> [Support Hierarchical Facets · Issue #1076 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1076))  
> But a hacky way to do it is to use term facet with a script field  
> containing the concatenation of your 3 fields (for ex.  
> 2012Jan\_Jordan\_Sport) and then parse the results to deconstruct your fields.
> 
> Nabloom
> 
> On Wednesday, July 17, 2013 3:26:22 PM UTC+2, Anas Jaghoub wrote:
> 
> > Hello Dears,
> > 
> > This is my first post here at this forum, I hope I get your help for my  
> > question.
> > 
> > I've a db structure of the following:
> > 
> > 1. artciles  
> > id, title, description, country\_id, category\_id , insert\_date
> > 
> > 2. country  
> > id, name
> > 
> > 3. category  
> > id, name, etc.
> > 
> > Article belongs to a country via country\_id and belongs to category via  
> > category\_id.
> > 
> > I've created an index called articles\_category\_country that indexes each  
> > article with with its category and country like this:  
> > article {  
> > id, title, description, country\_id, category\_id, insert\_date, country  
> > {id, name}, category {id, name}  
> > }
> > 
> > I need to generate a report that shows number of articles per month per  
> > country per category
> > 
> > In SQL we do it like this: SELECT article.insert\_date, country.name as  
> > "country\_name", category.name "category\_name" , count(\*) total  
> > FROM article INNER JOIN country ON country.id = article.country\_id INNER  
> > JOIN category ON category.id = article.category\_id  
> > GROUP BY article.insert\_date , country\_name, category\_name ORDER BY total  
> > DESC
> > 
> > I tried to do the same thing using Elasticsearch using the following  
> > query:
> > 
> > {  
> > "facets": {  
> > "by\_date": {  
> > "date\_histogram": {  
> > "field": "record\_insert\_date",  
> > "interval": "month"  
> > }  
> > },  
> > "by\_country": {  
> > "terms": {  
> > "field": "posts.countries.name",  
> > "all\_terms": true  
> > }  
> > },  
> > "by\_cat": {  
> > "terms": {  
> > "script\_field": "\_source.posts.categories\_new.name",  
> > "all\_terms": true, "order": "term"  
> > }  
> > }
> > 
> > }  
> > }
> > 
> > The problem is that each facet criteria returns its own result of  
> > aggregations , my question is: How can I get aggregations for my case  
> > per month, country, category
> > 
> > I'd expect the results some thing like this:
> > 
> > 2012-Jan Jordan Sport 5000 article  
> > 2012 Jan Jordan Technology 3000 article
> > 
> > 2012 Jan USA Sport 1000 article  
> > 2012 Jan USA Technology 500 article
> > 
> > and so on.
> > 
> > Kindly Advice

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![anasjaghoub](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@anasjaghoub](https://discuss.elastic.co/u/anasjaghoub)\
**Post date:** [July 20, 2013, 10:15am UTC](https://discuss.elastic.co/t/multi-field-facets/12826/4 "2013-07-20T10:15:12Z")

</div>

Thanks Nabloom for your help. one more question please, Is there a way to  
combine date histogram facet with terms facet? if so please show me a  
sample query for it.

Thanks

On Thursday, July 18, 2013 1:26:45 AM UTC+3, Nabloom wrote:

> Hi,
> 
> For moment there is no convenient way to do it in ES, i believe this is  
> planned in the 1.0 release (  
> [Support Hierarchical Facets · Issue #1076 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1076))  
> But a hacky way to do it is to use term facet with a script field  
> containing the concatenation of your 3 fields (for ex.  
> 2012Jan\_Jordan\_Sport) and then parse the results to deconstruct your fields.
> 
> Nabloom
> 
> On Wednesday, July 17, 2013 3:26:22 PM UTC+2, Anas Jaghoub wrote:
> 
> > Hello Dears,
> > 
> > This is my first post here at this forum, I hope I get your help for my  
> > question.
> > 
> > I've a db structure of the following:
> > 
> > 1. artciles  
> > id, title, description, country\_id, category\_id , insert\_date
> > 
> > 2. country  
> > id, name
> > 
> > 3. category  
> > id, name, etc.
> > 
> > Article belongs to a country via country\_id and belongs to category via  
> > category\_id.
> > 
> > I've created an index called articles\_category\_country that indexes each  
> > article with with its category and country like this:  
> > article {  
> > id, title, description, country\_id, category\_id, insert\_date, country  
> > {id, name}, category {id, name}  
> > }
> > 
> > I need to generate a report that shows number of articles per month per  
> > country per category
> > 
> > In SQL we do it like this: SELECT article.insert\_date, country.name as  
> > "country\_name", category.name "category\_name" , count(\*) total  
> > FROM article INNER JOIN country ON country.id = article.country\_id INNER  
> > JOIN category ON category.id = article.category\_id  
> > GROUP BY article.insert\_date , country\_name, category\_name ORDER BY total  
> > DESC
> > 
> > I tried to do the same thing using Elasticsearch using the following  
> > query:
> > 
> > {  
> > "facets": {  
> > "by\_date": {  
> > "date\_histogram": {  
> > "field": "record\_insert\_date",  
> > "interval": "month"  
> > }  
> > },  
> > "by\_country": {  
> > "terms": {  
> > "field": "posts.countries.name",  
> > "all\_terms": true  
> > }  
> > },  
> > "by\_cat": {  
> > "terms": {  
> > "script\_field": "\_source.posts.categories\_new.name",  
> > "all\_terms": true, "order": "term"  
> > }  
> > }
> > 
> > }  
> > }
> > 
> > The problem is that each facet criteria returns its own result of  
> > aggregations , my question is: How can I get aggregations for my case  
> > per month, country, category
> > 
> > I'd expect the results some thing like this:
> > 
> > 2012-Jan Jordan Sport 5000 article  
> > 2012 Jan Jordan Technology 3000 article
> > 
> > 2012 Jan USA Sport 1000 article  
> > 2012 Jan USA Technology 500 article
> > 
> > and so on.
> > 
> > Kindly Advice

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Nabloom](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@Nabloom](https://discuss.elastic.co/u/Nabloom)\
**Post date:** [July 20, 2013, 6:38pm UTC](https://discuss.elastic.co/t/multi-field-facets/12826/5 "2013-07-20T18:38:40Z")

</div>

Unfortunately not yet, there is a work in progress for an aggregation  
framework that will be released in the 1.0  
([Aggregation Module - Phase 1 - Functional Design · Issue #3300 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/3300)) that will  
enable such queries.

@Kajal: the hack consisted just of using terms facet and not terms stat  
facet, if you want to use a terms stat facet you can rely on the  
value\_script instead of the value\_field as described in the example in :

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Nabloom

On Saturday, July 20, 2013 12:15:12 PM UTC+2, Anas Jaghoub wrote:

> Thanks Nabloom for your help. one more question please, Is there a way to  
> combine date histogram facet with terms facet? if so please show me a  
> sample query for it.
> 
> Thanks
> 
> On Thursday, July 18, 2013 1:26:45 AM UTC+3, Nabloom wrote:
> 
> > Hi,
> > 
> > For moment there is no convenient way to do it in ES, i believe this is  
> > planned in the 1.0 release (  
> > [Support Hierarchical Facets · Issue #1076 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1076))  
> > But a hacky way to do it is to use term facet with a script field  
> > containing the concatenation of your 3 fields (for ex.  
> > 2012Jan\_Jordan\_Sport) and then parse the results to deconstruct your fields.
> > 
> > Nabloom
> > 
> > On Wednesday, July 17, 2013 3:26:22 PM UTC+2, Anas Jaghoub wrote:
> > 
> > > Hello Dears,
> > > 
> > > This is my first post here at this forum, I hope I get your help for my  
> > > question.
> > > 
> > > I've a db structure of the following:
> > > 
> > > 1. artciles  
> > > id, title, description, country\_id, category\_id , insert\_date
> > > 
> > > 2. country  
> > > id, name
> > > 
> > > 3. category  
> > > id, name, etc.
> > > 
> > > Article belongs to a country via country\_id and belongs to category via  
> > > category\_id.
> > > 
> > > I've created an index called articles\_category\_country that indexes each  
> > > article with with its category and country like this:  
> > > article {  
> > > id, title, description, country\_id, category\_id, insert\_date, country  
> > > {id, name}, category {id, name}  
> > > }
> > > 
> > > I need to generate a report that shows number of articles per month per  
> > > country per category
> > > 
> > > In SQL we do it like this: SELECT article.insert\_date, country.name as  
> > > "country\_name", category.name "category\_name" , count(\*) total  
> > > FROM article INNER JOIN country ON country.id = article.country\_id  
> > > INNER JOIN category ON category.id = article.category\_id  
> > > GROUP BY article.insert\_date , country\_name, category\_name ORDER BY  
> > > total DESC
> > > 
> > > I tried to do the same thing using Elasticsearch using the following  
> > > query:
> > > 
> > > {  
> > > "facets": {  
> > > "by\_date": {  
> > > "date\_histogram": {  
> > > "field": "record\_insert\_date",  
> > > "interval": "month"  
> > > }  
> > > },  
> > > "by\_country": {  
> > > "terms": {  
> > > "field": "posts.countries.name",  
> > > "all\_terms": true  
> > > }  
> > > },  
> > > "by\_cat": {  
> > > "terms": {  
> > > "script\_field": "\_source.posts.categories\_new.name",  
> > > "all\_terms": true, "order": "term"  
> > > }  
> > > }
> > > 
> > > }  
> > > }
> > > 
> > > The problem is that each facet criteria returns its own result of  
> > > aggregations , my question is: How can I get aggregations for my case  
> > > per month, country, category
> > > 
> > > I'd expect the results some thing like this:
> > > 
> > > 2012-Jan Jordan Sport 5000 article  
> > > 2012 Jan Jordan Technology 3000 article
> > > 
> > > 2012 Jan USA Sport 1000 article  
> > > 2012 Jan USA Technology 500 article
> > > 
> > > and so on.
> > > 
> > > Kindly Advice

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Perry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/perry/32/2185_2.png) [@Perry](https://discuss.elastic.co/u/Perry)\
**Post date:** [July 24, 2013, 6:51am UTC](https://discuss.elastic.co/t/multi-field-facets/12826/6 "2013-07-24T06:51:44Z")

</div>

@Nabloom, thanks for your tips. I find script\_field works too on nested  
keys, like this

"facets":{  
"lpload-facet":{  
"terms": {  
"script\_field" : "\_source.lp\_load.source + ':::' +  
\_source.lp\_load.landing\_page",  
"size" : 10  
}  
}  
}

but this will cause 500 error

"facets":{  
"lpload-facet":{  
"terms": {  
"script\_field" : "\_source.source + ':::' + \_source.landing\_page",  
"size" : 10  
},  
"nested": "lp\_load"  
}  
}

so nested facets is not necessarily for "inner" documents faceting? But the  
doc[[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/facets/)] says  
this

First of all, this is the only way to use facets on nested documents once

> they are used

so, I'm kind of confused here.

On Sun, Jul 21, 2013 at 2:38 AM, Nabloom [benmira@gmail.com](mailto:benmira@gmail.com) wrote:

> Unfortunately not yet, there is a work in progress for an aggregation  
> framework that will be released in the 1.0 (  
> [Aggregation Module - Phase 1 - Functional Design · Issue #3300 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/3300)) that will  
> enable such queries.
> 
> @Kajal: the hack consisted just of using terms facet and not terms stat  
> facet, if you want to use a terms stat facet you can rely on the  
> value\_script instead of the value\_field as described in the example in :  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/facets/terms-stats-facet/)
> 
> Nabloom
> 
> On Saturday, July 20, 2013 12:15:12 PM UTC+2, Anas Jaghoub wrote:
> 
> > Thanks Nabloom for your help. one more question please, Is there a way to  
> > combine date histogram facet with terms facet? if so please show me a  
> > sample query for it.
> > 
> > Thanks
> > 
> > On Thursday, July 18, 2013 1:26:45 AM UTC+3, Nabloom wrote:
> > 
> > > Hi,
> > > 
> > > For moment there is no convenient way to do it in ES, i believe this is  
> > > planned in the 1.0 release ([https://github.com/](https://github.com/)\*\*  
> > > elasticsearch/elasticsearch/\*\*issues/1076[https://github.com/elasticsearch/elasticsearch/issues/1076](https://github.com/elasticsearch/elasticsearch/issues/1076)  
> > > )  
> > > But a hacky way to do it is to use term facet with a script field  
> > > containing the concatenation of your 3 fields (for ex.  
> > > 2012Jan\_Jordan\_Sport) and then parse the results to deconstruct your fields.
> > > 
> > > Nabloom
> > > 
> > > On Wednesday, July 17, 2013 3:26:22 PM UTC+2, Anas Jaghoub wrote:
> > > 
> > > > Hello Dears,
> > > > 
> > > > This is my first post here at this forum, I hope I get your help for my  
> > > > question.
> > > > 
> > > > I've a db structure of the following:
> > > > 
> > > > 1. artciles  
> > > > id, title, description, country\_id, category\_id , insert\_date
> > > > 
> > > > 2. country  
> > > > id, name
> > > > 
> > > > 3. category  
> > > > id, name, etc.
> > > > 
> > > > Article belongs to a country via country\_id and belongs to category via  
> > > > category\_id.
> > > > 
> > > > I've created an index called articles\_category\_country that indexes  
> > > > each article with with its category and country like this:  
> > > > article {  
> > > > id, title, description, country\_id, category\_id, insert\_date, country  
> > > > {id, name}, category {id, name}  
> > > > }
> > > > 
> > > > I need to generate a report that shows number of articles per month per  
> > > > country per category
> > > > 
> > > > In SQL we do it like this: SELECT article.insert\_date, country.name as  
> > > > "country\_name", category.name "category\_name" , count(\*) total  
> > > > FROM article INNER JOIN country ON country.id = article.country\_id  
> > > > INNER JOIN category ON category.id = article.category\_id  
> > > > GROUP BY article.insert\_date , country\_name, category\_name ORDER BY  
> > > > total DESC
> > > > 
> > > > I tried to do the same thing using Elasticsearch using the following  
> > > > query:
> > > > 
> > > > {  
> > > > "facets": {  
> > > > "by\_date": {  
> > > > "date\_histogram": {  
> > > > "field": "record\_insert\_date",  
> > > > "interval": "month"  
> > > > }  
> > > > },  
> > > > "by\_country": {  
> > > > "terms": {  
> > > > "field": "posts.countries.name",  
> > > > "all\_terms": true  
> > > > }  
> > > > },  
> > > > "by\_cat": {  
> > > > "terms": {  
> > > > "script\_field": "\_source.posts.categories\_new.\*\*name[http://source.posts.categories\_new.name](http://source.posts.categories_new.name)  
> > > > ",  
> > > > "all\_terms": true, "order": "term"  
> > > > }  
> > > > } \*\* \*\*  
> > > > \*\* \*\*
> > > > 
> > > > }  
> > > > }
> > > > 
> > > > The problem is that each facet criteria returns its own result of  
> > > > aggregations , my question is: How can I get aggregations for my case  
> > > > per month, country, category
> > > > 
> > > > I'd expect the results some thing like this:
> > > > 
> > > > 2012-Jan Jordan Sport 5000 article  
> > > > 2012 Jan Jordan Technology 3000 article
> > > > 
> > > > 2012 Jan USA Sport 1000 article  
> > > > 2012 Jan USA Technology 500 article
> > > > 
> > > > and so on.
> > > > 
> > > > Kindly Advice
> > > > 
> > > > --  
> > > > 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).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Perry | 彭琪  
[http://pengqi.me](http://pengqi.me)

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:24am UTC](https://discuss.elastic.co/t/multi-field-facets/12826/7 "2017-07-06T02:24:51Z")

</div>

Closed on July 6, 2017, 2:24am UTC


