-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Pack terms once when terms query is created for indexed and docValues…
#19350
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
Pack terms once when terms query is created for indexed and docValues…
#19350
Conversation
7f1cd7e to
9e66c4a
Compare
… keyword field. Signed-off-by: Mikhail Khludnev <[email protected]>
9e66c4a to
e8f9e61
Compare
Signed-off-by: Mikhail Khludnev <[email protected]>
|
fwiw this optimization doesn't work for flattened field type. |
terms query is created for indexed and docValues…
terms query is created for indexed and docValues…terms query is created for indexed and docValues…
Signed-off-by: Mikhail Khludnev <[email protected]>
|
❌ Gradle check result for b8819fd: null 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? |
|
something is wrong with failed job |
Signed-off-by: Mikhail Khludnev <[email protected]>
|
❌ Gradle check result for c5d23c9: 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? |
|
reproduced failure StreamStringTermsAggregatorTests.testReduceWithSizeLimit locally. looking into UPD ok. it seems unrelated. |
Signed-off-by: Mikhail Khludnev <[email protected]>
|
❌ Gradle check result for e65a5c1: 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? |
Signed-off-by: Mikhail Khludnev <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #19350 +/- ##
=========================================
Coverage 73.00% 73.01%
- Complexity 70534 70542 +8
=========================================
Files 5719 5719
Lines 323260 323272 +12
Branches 46816 46821 +5
=========================================
+ Hits 235993 236030 +37
+ Misses 68224 68188 -36
- Partials 19043 19054 +11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jainankitk
left a comment
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.
Thanks @mkhludnev for patiently waiting for apache/lucene#14435 to be available as part of 10.3 upgrade and adding this improvement!
server/src/main/java/org/opensearch/index/mapper/KeywordFieldMapper.java
Show resolved
Hide resolved
…es… (opensearch-project#19350) Signed-off-by: Mikhail Khludnev <[email protected]> Signed-off-by: Mikhail Khludnev <[email protected]>
…es… (opensearch-project#19350) Signed-off-by: Mikhail Khludnev <[email protected]> Signed-off-by: Mikhail Khludnev <[email protected]>
… keyword field.
Description
Pack terms once when terms query is created for indexed and docValues keywords field.
Related Issues
It's a continuation of #17714 made possible by lucene#14425
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.