# Facets on nested documents

**URL:** <https://discuss.elastic.co/t/facets-on-nested-documents/9093>\
**Category:** Elasticsearch\
**Created:** [September 21, 2012, 9:03am UTC](https://discuss.elastic.co/t/facets-on-nested-documents/9093 "2012-09-21T09:03:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karan](https://avatars.discourse-cdn.com/v4/letter/k/58f4c7/32.png) [@karan](https://discuss.elastic.co/u/karan)\
**Post date:** [September 21, 2012, 9:03am UTC](https://discuss.elastic.co/t/facets-on-nested-documents/9093/1 "2012-09-21T09:03:53Z")

</div>

Hi,

I needed help.

I have my document with the below structure(reduced for simplicity):

{  
id: 1,  
applications: {  
search: {  
applicable: no,  
level: 1  
}  
}  
}

Question:

1. How do i get facets for the inner object 'search'. i.e.  
applications.search.
2. How do i get facets for the key 'applicable'. i.e.  
applications.search.applicable

Please help.  
Thanks alot,  
Jaskaran

--

---

<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, 3:12am UTC](https://discuss.elastic.co/t/facets-on-nested-documents/9093/2 "2017-07-06T03:12:02Z")

</div>


