-
Notifications
You must be signed in to change notification settings - Fork 730
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
Support of multiple conditions for term aggregation order #1478
Comments
You are right that there is not a named API function for this today but you can already make use of it by using
On your end you can pass an array with your values:
I haven't tested it but that should work. Interested to contribute a |
@ruflin Thank you for your quick response. Yes, I already forked your repo and added these methods on my own :) I didn't wanted to call the I'll add tests and will provide a PR when it's ready from my side. |
I'll add an additional method This also guarantees no broken queries if a user will execute both |
SGTM. Looking forward to the PR. Let's skip |
This got resolved in: #1480 |
Hello,
I figured out that elasticsearch is allowing multiple conditions for term aggregation orders.
But as far as I understand
Aggregation\Terms::setOrder()
is not capable of this feature.Are there any plans to support this?
Cheers,
Christian
The text was updated successfully, but these errors were encountered: