Specifying bucket values ordering in Range aggregation

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.

Thanks
Raul

--
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/a0b4c6a2-69b0-4e70-96ed-f1497cd80f27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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.

Thanks
Raul

--
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/a0b4c6a2-69b0-4e70-96ed-f1497cd80f27%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/a0b4c6a2-69b0-4e70-96ed-f1497cd80f27%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
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/CAL6Z4j63wsQM%2B9tvbmku9fw8JaPdAvgvBduTrHmAG3TE54mY3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

But if I'm limiting the results by size(), I need to order to have specific
results like the 10 bests order or is there another way?

Am Mittwoch, 10. September 2014 22:55:33 UTC+2 schrieb Adrien Grand:

The range aggregation indeed does not support ordering. I believe that is
something that would be easy to implement on client side?

--
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/2bd40662-8c7f-42f4-a713-3a4e240cda3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.