Skip to content
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

Sort and truncate pipeline aggregation #14928

Closed
colings86 opened this issue Nov 23, 2015 · 16 comments
Closed

Sort and truncate pipeline aggregation #14928

colings86 opened this issue Nov 23, 2015 · 16 comments

Comments

@colings86
Copy link
Member

@colings86 colings86 commented Nov 23, 2015

This would be a parent pipeline aggregation which would take the following option:

  • Sort - a bucketsPath that defines the aggregation(s) in each bucket to use to sort the buckets in the parent aggregation. If this is not provided no sorting is done on the buckets
  • Offset - all buckets before this index in the sorted buckets list will be removed. Defaults to 0 (i.e. don't remove any buckets from the beginning of the list)
  • Size - all buckets after offset + size index in the sorted buckets list will be removed. Defaults to buckets.size() (i.e. don't remove any buckets from the end of the list)
@eskibars
Copy link
Contributor

@eskibars eskibars commented Feb 25, 2016

+1

4 similar comments
@taowen
Copy link

@taowen taowen commented Feb 29, 2016

+1

@davyfeng
Copy link

@davyfeng davyfeng commented Mar 21, 2016

+1

@appasahebs
Copy link

@appasahebs appasahebs commented Apr 19, 2016

+1

@ghost
Copy link

@ghost ghost commented Jun 3, 2016

+1

@soulne4ny
Copy link

@soulne4ny soulne4ny commented Sep 7, 2016

+1

It is quite surprising that bucket_script is so much different from other aggregations that ordering aggregation buckets by bucket_script is impossible. order clause just does not see a bucket_script name.

@dizzzyroma
Copy link

@dizzzyroma dizzzyroma commented Dec 31, 2016

+1

1 similar comment
@waiter
Copy link

@waiter waiter commented Feb 8, 2017

+1

@dizzzyroma
Copy link

@dizzzyroma dizzzyroma commented Feb 17, 2017

Any ideas when this will be in production?

@gqy2468
Copy link

@gqy2468 gqy2468 commented Feb 22, 2017

+1

4 similar comments
@xavigonz
Copy link

@xavigonz xavigonz commented Mar 22, 2017

+1

@SimonKlausLudwig
Copy link

@SimonKlausLudwig SimonKlausLudwig commented Mar 22, 2017

+1

@developerworks
Copy link

@developerworks developerworks commented Apr 13, 2017

+1

@asynchronoust
Copy link

@asynchronoust asynchronoust commented May 10, 2017

+1

@54ebb
Copy link

@54ebb 54ebb commented Jul 24, 2017

+1

1 similar comment
@claudiuolteanu
Copy link

@claudiuolteanu claudiuolteanu commented Jul 24, 2017

+1

@dimitris-athanasiou dimitris-athanasiou self-assigned this Oct 9, 2017
dimitris-athanasiou added a commit to dimitris-athanasiou/elasticsearch that referenced this issue Nov 7, 2017
This commit adds a parent pipeline aggregation that allows
sorting the buckets of a parent multi-bucket aggregation.

The aggregation also offers [from] and [size] parameters
in order to truncate the result as desired.

Closes elastic#14928
dimitris-athanasiou added a commit that referenced this issue Nov 9, 2017
This commit adds a parent pipeline aggregation that allows
sorting the buckets of a parent multi-bucket aggregation.

The aggregation also offers [from] and [size] parameters
in order to truncate the result as desired.

Closes #14928
dimitris-athanasiou added a commit that referenced this issue Nov 10, 2017
This commit adds a parent pipeline aggregation that allows
sorting the buckets of a parent multi-bucket aggregation.

The aggregation also offers [from] and [size] parameters
in order to truncate the result as desired.

Closes #14928
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.