# ElasticSearch 0.90.2 : terms facet & nested type

**URL:** <https://discuss.elastic.co/t/elasticsearch-0-90-2-terms-facet-nested-type/13175>\
**Category:** Elasticsearch\
**Created:** [August 12, 2013, 1:55pm UTC](https://discuss.elastic.co/t/elasticsearch-0-90-2-terms-facet-nested-type/13175 "2013-08-12T13:55:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damien\_Ferey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/damien_ferey/32/536_2.png) [@Damien\_Ferey](https://discuss.elastic.co/u/Damien_Ferey)\
**Post date:** [August 12, 2013, 1:55pm UTC](https://discuss.elastic.co/t/elasticsearch-0-90-2-terms-facet-nested-type/13175/1 "2013-08-12T13:55:58Z")

</div>

Hello,

I've a simple object with nested type, and I would like to have a facet  
that returns terms from this nested object.

I've posted details here (mapping, data in ElasticSearch, and java code to  
build facet request) :

> <https://gist.github.com/MarneusCalgarXP/473d6d72c5ae7dc04a11>
>
> There are more than three files. show original

When I try a matchall with the facet query, Elasticsearch returns me the  
following:

{  
"facet\_situation": {

"entries": [],  
"name": "facet\_situation",  
"totalCount": 0,  
"otherCount": 0,  
"missingCount": 0

}

Do you have an idea ?

--  
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:21am UTC](https://discuss.elastic.co/t/elasticsearch-0-90-2-terms-facet-nested-type/13175/2 "2017-07-06T02:21:33Z")

</div>


