-
Notifications
You must be signed in to change notification settings - Fork 502
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
Update the example of the multiple terms aggregation by muliple orders. #7039
Update the example of the multiple terms aggregation by muliple orders. #7039
Conversation
Signed-off-by: Zhikai Chen <[email protected]>
I suggest we don't remove the original example, but add a new one. Because if it needs only 1 order, it could use original one. If we change document like this way, it could confuse the old order style is not supported. But it is not true, it can support both one order with |
I got your point, but the current document is not correct. I am trying to fix it to make it accurate. |
@bowenlan-amzn - What are your thoughts on this? |
Please refer to the update in PR: opensearch-project/OpenSearch#13400 |
Hi @dblock - Can you please comment with your thoughts? Thanks. |
The current example is incorrect, if I understand correctly it has to be an array of orders, even with 1 order. There's no point in having an array of 1 and then another example with an array of 2, is there? |
As far as I know, there is no example of array in the offical doc. |
@dblock As current official document, the multi-term example is as below:
@Zhikai-VM wants to revise it as:
to keep the official document accordance with this PR: opensearch-project/OpenSearch#13400 |
Hi @dblock , what do you think about this? I prefer to use an array for the 'order' field. We can pass one order or multiple orders in this field. |
Hi @dblock and @bowenlan-amzn, any thoughts on this PR? |
This looks good to me, can we merge @hdhalter ? |
…s. (#7039) Signed-off-by: Zhikai Chen <[email protected]> (cherry picked from commit 927ca93) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Thanks @dblock @bowenlan-amzn! |
Description
Update the example of the multiple terms aggregation.
Issues Resolved
Closes #7037
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.