Terms Filter/Facet on object array

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.
For more options, visit https://groups.google.com/groups/opt_out.