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
Assignees

Comments

@colings86
Copy link
Contributor

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

+1

4 similar comments
@taowen
Copy link

taowen commented Feb 29, 2016

+1

@davyfeng
Copy link

+1

@appasahebs
Copy link

+1

@ghost
Copy link

ghost commented Jun 3, 2016

+1

@soulne4ny
Copy link

+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

+1

1 similar comment
@waiter
Copy link

waiter commented Feb 8, 2017

+1

@dizzzyroma
Copy link

Any ideas when this will be in production?

@gqy2468
Copy link

gqy2468 commented Feb 22, 2017

+1

4 similar comments
@xavigonz
Copy link

+1

@SimonKlausLudwig
Copy link

+1

@developerworks
Copy link

+1

@asynchronoust
Copy link

+1

@54ebb
Copy link

54ebb commented Jul 24, 2017

+1

1 similar comment
@claudiuolteanu
Copy link

+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
Development

No branches or pull requests