-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
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
[Timelion] Support ascending order sort on terms agg #11622
Comments
The reason this doesn't exist is that Elasticsearch has been threatening to remove sorting by ascending count for the last year or so. Though as of this morning they say that there is no plan to remove it, the issue remains open: elastic/elasticsearch#17614. Its also worth noting that sort by ascending count isn't accurate. |
I understand the pitfalls of the different rankings between multiple shards for the same index. Our use case of ES/Kibanais quantitative. So, we're setting shard_size to 0 when aggregating numbers which is returning accurate results. Being able to sort by "ascending" is very useful to us with the default kibana graphs and would be great in timelion Example: I'd like to aggregate sales performance by dollars sold per month and I'l like to see the 10 worst performers out of 1000 employees. |
Also note. Any index where our dataset is mostly numbers, we only have 1 shard (1 index is created per calendar date) |
This is possible in Lens so I am closing this as we dont plan to add more enhancements in timelion |
Currently when using the
split
argument to the.es
function in Timelion it is only possible to sort the term buckets in descending order (i.e. top N terms). For feature completeness it would be good to support sorting in ascending order (i.e. bottom N terms) as well*.The text was updated successfully, but these errors were encountered: