-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Fix TopHitsAggregationBuilder adding duplicate _score sort clauses #42179
Conversation
Pinging @elastic/es-core-features |
Pinging @elastic/es-analytics-geo |
Thanks for the PR! Changes look good, would you mind adding a test for this specific bug (always good to test explicitly :). After that, I can start the merging process. |
I added a unit test, but I'm not sure if it's good enough. If that's not enough, could you suggest how to test it more properly? |
The test is enough, I will start now the CI checks and if successful I merge the PR. Thanks again! @elasticmachine test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Looks like these CI failures are not caused by my changes. |
Indeed, there were some problems with version bumps and a PR has just been merged to address it. May I ask you to merge master into your branch so I can restart the Jobs? Sorry about this extra work. |
Done. |
@elasticmachine test this please |
Again, some weird error in |
@elasticmachine run elasticsearch-ci/bwc |
Failed again. |
Yes, I do not see any relation between this PR and the errors in the job. I will trigger it again and if it fails again I will look into it more in depth. |
@elasticmachine run elasticsearch-ci/bwc |
Builds have been relatively unhealthy today. There was a broken bwc test (muted here: 455cf8b) which wasn't obvious for a while because there were other errors from the version bump. Not sure at what point you merged master in, but you'll need to get past 455cf8b at the very least. Might be easiest to just let the builds settle down a day or so and try again once they are green. Apologies for the hassle! We can lay some of the red builds at my feet 😳 |
Merge was before 455cf8b |
<3 thanks @Hohol @elasticmachine test this please |
@elasticmachine run elasticsearch-ci/1 |
Thanks for the PR @Hohol, I will back port it now to 7.x. |
…lastic#42179) When using High Level Rest Client Java API to produce search query, using AggregationBuilders.topHits("th").sort("_score", SortOrder.DESC) caused query to contain duplicate sort clauses.
…lastic#42179) When using High Level Rest Client Java API to produce search query, using AggregationBuilders.topHits("th").sort("_score", SortOrder.DESC) caused query to contain duplicate sort clauses.
When using High Level Rest Client Java API to produce search query, using
AggregationBuilders.topHits("th").sort("_score", SortOrder.DESC)
caused query to contain duplicate sort clauses:
Fixes #42154