[Backport 2.x] Always use constant_score query for match_only_text#16969
Conversation
…ct#16964) In some cases, when we create a term query over a `match_only_text` field, it may still try to compute scores, which prevents early termination. We should *always* use a constant score query when querying `match_only_text`, since we don't have the statistics required to compute scores. --------- Signed-off-by: Michael Froh <froh@amazon.com> (cherry picked from commit 0b36599)
|
❌ Gradle check result for 8eb62a6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 8eb62a6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❕ Gradle check result for 8eb62a6: UNSTABLE
Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #16969 +/- ##
============================================
+ Coverage 71.86% 71.89% +0.03%
- Complexity 65521 65542 +21
============================================
Files 5314 5314
Lines 305467 305469 +2
Branches 44509 44509
============================================
+ Hits 219518 219624 +106
+ Misses 67669 67467 -202
- Partials 18280 18378 +98 ☔ View full report in Codecov by Sentry. |
Description
Manual backport of #16964
Related Issues
N/A
Check List
API changes companion pull request created, if applicable.Public documentation issue/PR created, if applicable.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.