Hi, I have a big issue with this. The query I'm running doesnt show the
result expected. becauser It doesn let me to order for more than one
aggregated term fields
GET my_stats/stats/_search
{
"size" : 0,
"query" : {
"filtered" : {
"query" : {
"match_all" : { }
},
"filter" : {
"bool" : {
"must" : [ {
"term" : {
"MYID" : [ "130037364" ]
}
} ]
}
}
}
},
"aggregations" : {
"stats" : {
"terms" : {
"field" : "ADID",
"size" : 15000,
"order" : {
"LISTED.value" : "desc" ,
"DETAIL.value" : "desc"
}
},
"aggregations" : {
"LISTED" : {
"sum" : {
"field" : "LISTED"
}
},
"DETAIL" : {
"sum" : {
"field" : "DETAIL"
}
},
"ALERTS" : {
"sum" : {
"field" : "ALERTS"
}
}
}
}
}
}
Any suggestion?
--
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/a6851796-914c-4bcf-96e3-017e6b0b6431%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.