Hello,
We are currently evaluating the aggregations api and we have reached into a
point where we are trying to sort the buckets returned by a stats
aggregation which is in depth 4.
However executing the following search we receive a NPE.
POST _search?search_type=count
{
"aggregations": {
"issueName_bucket": {
"terms": {
"field": "issueName",
"order": {
"stats_bucket.avg": "asc"
}
},
"aggregations": {
"destinationPage_bucket": {
"terms": {
"field": "destinationPage"
},
"aggregations": {
"over_time_bucket": {
"date_histogram": {
"field": "timestamp",
"interval": "day"
},
"aggregations": {
"stats_bucket": {
"stats": {
"field": "duration"
}
}
}
}
}
}
}
}
}
}
Does the aggregation api supports ordering sub aggregations of other sub
aggregations?
Thanks is advance
Kostas
--
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/4bf525da-30ef-4feb-87c4-433e2fa80f6b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.