# Terms Filter/Facet on object array

**URL:** <https://discuss.elastic.co/t/terms-filter-facet-on-object-array/14466>\
**Category:** Elasticsearch\
**Created:** [November 19, 2013, 10:49am UTC](https://discuss.elastic.co/t/terms-filter-facet-on-object-array/14466 "2013-11-19T10:49:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armand\_Parris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/armand_parris/32/1964_2.png) [@Armand\_Parris](https://discuss.elastic.co/u/Armand_Parris)\
**Post date:** [November 19, 2013, 10:49am UTC](https://discuss.elastic.co/t/terms-filter-facet-on-object-array/14466/1 "2013-11-19T10:49:03Z")

</div>

Hi,

After lot's of reading and testing i have not been able to get the results  
i want.

Given the following ojbect:  
{  
"category" : "testCategory",  
"attributes": [  
{  
"name": "brand",  
"value": ""  
},  
{  
"name": "type",  
"value": ""  
},  
{  
"name": "xxx",  
"value": ""  
},  
{  
"name": "yyy",  
"value": ""  
},  
{  
"name": "zzz",  
"value": ""  
}  
]  
}

What is the (Json) request to search for this object (by category) and get  
an allTerms facets result from attributes.value grouped by attributes.name?  
Thanxs for your help.

--  
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:06am UTC](https://discuss.elastic.co/t/terms-filter-facet-on-object-array/14466/2 "2017-07-06T02:06:15Z")

</div>


