"term_stats" equivalent in aggregations? (ES 1.0)

Hi all. LOVE the new 1.0 release, and learning about the new aggregation
framework. Can you tell me if there is an aggregation equivalent to the
term_stats facet? The term aggregation isn't quite the same. I want to
bucket on one field, and calculate stats on another. Any help on this would
be greatly appreciated.

--Eric

--
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/a2a4286e-18ac-4e2b-906f-2279dd915512%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

You should be able to do a stats sub under terms like this:

{
"aggs": {
"terms": {
"terms": {
"field": "term_field"
},
"aggs": {
"stats": {
"stats": {
"field": "stats_field"
}
}
}
}
}
}

--
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/fef0784b-5c62-4952-8c04-2ccaa023af2a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Perfect! Thanks Binh.

---Eric

On Thursday, February 13, 2014 12:18:37 PM UTC-7, Binh Ly wrote:

You should be able to do a stats sub under terms like this:

{
"aggs": {
"terms": {
"terms": {
"field": "term_field"
},
"aggs": {
"stats": {
"stats": {
"field": "stats_field"
}
}
}
}
}
}

--
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/c3cfac2f-4002-4762-94d2-aa805fe01674%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.