Faceting question

Hi :
I have data that is like so :

{
"Object1" : {
"text" : "This is text"
"id": 123
},
"Attribute2" : "attribute_value"
}......

I want to facet (terms) on Object1.id, However, when the results are
returned, I want the Text to be the value associated with the count.
Is it possible to do that ?

for example :

the face results should show :

"facets": {
"terms": [
{
"term": "651", <======== Show Object1.text corresponding
to id : 651
"count": 5300
},
{
"term": "188", <========== Show Object1.text
corresponding to id : 188
"count": 1776
},
]

Thanks

Ramdev

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/64fe52b8-57aa-41e1-aec5-63e186aa0113%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.