optimize must_not exisits on dense fields#21126
optimize must_not exisits on dense fields#21126ThyTran1402 wants to merge 2 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: Thy Tran <58045538+ThyTran1402@users.noreply.github.com>
PR Reviewer Guide 🔍(Review updated until commit e21a7c9)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to e21a7c9
Previous suggestionsSuggestions up to commit 74a9528
|
|
❌ Gradle check result for 74a9528: 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? |
|
Persistent review updated to latest commit e21a7c9 |
|
❌ Gradle check result for e21a7c9: 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? |
|
This PR is stalled because it has been open for 30 days with no activity. |
Description
This PR: optimizes must_not: exists queries on dense fields by rewriting them into a cacheable positive filter.
ExistsQueryBuilderdid not implementComplementAwareQueryBuilder,soMustNotToShouldRewriterskipped it entirely.NotExistsQueryandNotExistsQueryBuilderas the complement ofExistsQueryBuilder,and wires them into the existing query rewrite infrastructure.Related Issues
Resolves #12426
Check List
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.