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 <mkhl@apache.org>
9e66c4a to
e8f9e61
Compare
Signed-off-by: Mikhail Khludnev <mkhludnev@users.noreply.github.com>
|
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 <mkhl@apache.org>
|
❌ 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 <mkhl@apache.org>
|
❌ 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 <mkhludnev@users.noreply.github.com>
|
❌ 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 <mkhludnev@users.noreply.github.com>
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.
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 <mkhl@apache.org> Signed-off-by: Mikhail Khludnev <mkhludnev@users.noreply.github.com>
…es… (opensearch-project#19350) Signed-off-by: Mikhail Khludnev <mkhl@apache.org> Signed-off-by: Mikhail Khludnev <mkhludnev@users.noreply.github.com>
… 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.