I'd like to add an "order" parameter to a range aggregation ( use case:
sorting the age of records from latest added to oldest) but adding "order"
: {"_terms":"asc"} or _count causes a search error.
I'm trying to confirm if "range" aggregation doesn't really support "order"
parameter at this point or am I just missing anything. Been into the
documentation examples, mailing list and github issues but couldn't really
confirm if this is really the case.
The range aggregation indeed does not support ordering. I believe that is
something that would be easy to implement on client side?
On Wed, Sep 10, 2014 at 2:13 AM, Raul, Jr. Martinez juneym@gmail.com
wrote:
Hello,
I'd like to add an "order" parameter to a range aggregation ( use case:
sorting the age of records from latest added to oldest) but adding "order"
: {"_terms":"asc"} or _count causes a search error.
I'm trying to confirm if "range" aggregation doesn't really support
"order" parameter at this point or am I just missing anything. Been into
the documentation examples, mailing list and github issues but couldn't
really confirm if this is really the case.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.