forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix _score access in double scripted terms agg (elastic#82331)
When we're aggregation on a script that contains `score` with the value type hint `double` we were always using a score of `0.0`. This passes the score into the script properly. This also updates `terms` agg tests in accordance with elastic#82273. I found this bug while updating tests for elastic#82273 but wanted to split out the bug fix. But I wanted to include all of the updates to these tests for issue elastic#82273 because they add extra type checks for similar issues.
- Loading branch information
Showing
8 changed files
with
375 additions
and
343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
198 changes: 106 additions & 92 deletions
198
.../internalClusterTest/java/org/elasticsearch/search/aggregations/bucket/DoubleTermsIT.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.