We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As reported on #4643, when trying to sort terms aggregation based on sub metric aggregation, the asc/desc order is not respected. For example:
terms
asc
desc
{ "aggs": { "fieldValues": { "terms": { "field": "name.field", "order": { "totalAmount": "desc" } }, "aggs": { "totalAmount": { "sum": { "field": "amount" } } } } }, "size": 0 }
In the example above, when executing on a single shard, the terms are always sorted in an ascending order.
The text was updated successfully, but these errors were encountered:
fixed a bug where when executing on a single shard and sorting terms …
33f563f
…agg based on sub metric agg, the order (asc/desc) is not respected - fixed tests for terms order Closes #4951
6c7ce2a
79d1633
@benatwork99 fyi, thx for your patience
Sorry, something went wrong.
@uboness Thank you for the quick fix! Looking forward to RC2 :)
788c663
…agg based on sub metric agg, the order (asc/desc) is not respected - fixed tests for terms order Closes elastic#4951
No branches or pull requests
As reported on #4643, when trying to sort
terms
aggregation based on sub metric aggregation, theasc
/desc
order is not respected. For example:In the example above, when executing on a single shard, the terms are always sorted in an ascending order.
The text was updated successfully, but these errors were encountered: