-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Allow searching 1K+ IP/masks in DV-only fields via terms_query #18357
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
Allow searching 1K+ IP/masks in DV-only fields via terms_query #18357
Conversation
|
❌ Gradle check result for bf21595: 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 9493dd7: 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 d88fea8: 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]>
Signed-off-by: Mikhail Khludnev <[email protected]>
Signed-off-by: Mikhail Khludnev <[email protected]>
1758202 to
4ad17d8
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18357 +/- ##
============================================
- Coverage 72.74% 72.66% -0.09%
+ Complexity 67767 67726 -41
============================================
Files 5497 5504 +7
Lines 311815 311928 +113
Branches 45261 45284 +23
============================================
- Hits 226822 226648 -174
- Misses 66504 66781 +277
- Partials 18489 18499 +10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Mikhail Khludnev <[email protected]>
|
❌ Gradle check result for 6fb5c76: 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? |
|
org.opensearch.upgrades.FullClusterRestartIT.testRecovery |
|
Hello, |
|
@mkhludnev thanks for the lucene contribution and using it here. I wondering what other places we can exploit the use of |
|
Thanks @rishabhmaurya I also though about it, at the first glimpse there is no many field types letting to pass a range into terms query. Let me double check ranges and especially IP range. |
7ab5c59
into
opensearch-project:main
|
Thanks for merging this. Aren't there a backport duty now? |
|
looks like 2.x still pointing to old lucene version - OpenSearch/gradle/libs.versions.toml Line 3 in 0aea92b
|
|
Right. Got it now. Thanks |
…earch-project#18357) * search IP/masks via dvFields Signed-off-by: Mikhail Khludnev <[email protected]> * sight test adjustment Signed-off-by: Mikhail Khludnev <[email protected]> * test adjustment + mimicking old behavior Signed-off-by: Mikhail Khludnev <[email protected]> * assert over 1K clauses Signed-off-by: Mikhail Khludnev <[email protected]> * shaping the code Signed-off-by: Mikhail Khludnev <[email protected]> --------- Signed-off-by: Mikhail Khludnev <[email protected]> Signed-off-by: Mikhail Khludnev <[email protected]>
Cant' find a low hanging fruit here. Potentially it could be:
So, looks like we can put it on-hold until we get a request from users. |
|
@mkhludnev I like these ideas especially rewriting the boolean queries. Do you think this approach can result in better performance for some of these boolean queries? |
|
I'm afraid it's a quite rare case. Let's wait for a particular user. |
…earch-project#18357) * search IP/masks via dvFields Signed-off-by: Mikhail Khludnev <[email protected]> * sight test adjustment Signed-off-by: Mikhail Khludnev <[email protected]> * test adjustment + mimicking old behavior Signed-off-by: Mikhail Khludnev <[email protected]> * assert over 1K clauses Signed-off-by: Mikhail Khludnev <[email protected]> * shaping the code Signed-off-by: Mikhail Khludnev <[email protected]> --------- Signed-off-by: Mikhail Khludnev <[email protected]> Signed-off-by: Mikhail Khludnev <[email protected]>
…earch-project#18357) * search IP/masks via dvFields Signed-off-by: Mikhail Khludnev <[email protected]> * sight test adjustment Signed-off-by: Mikhail Khludnev <[email protected]> * test adjustment + mimicking old behavior Signed-off-by: Mikhail Khludnev <[email protected]> * assert over 1K clauses Signed-off-by: Mikhail Khludnev <[email protected]> * shaping the code Signed-off-by: Mikhail Khludnev <[email protected]> --------- Signed-off-by: Mikhail Khludnev <[email protected]> Signed-off-by: Mikhail Khludnev <[email protected]>Signed-off-by: TJ Neuenfeldt <[email protected]>
…earch-project#18357) * search IP/masks via dvFields Signed-off-by: Mikhail Khludnev <[email protected]> * sight test adjustment Signed-off-by: Mikhail Khludnev <[email protected]> * test adjustment + mimicking old behavior Signed-off-by: Mikhail Khludnev <[email protected]> * assert over 1K clauses Signed-off-by: Mikhail Khludnev <[email protected]> * shaping the code Signed-off-by: Mikhail Khludnev <[email protected]> --------- Signed-off-by: Mikhail Khludnev <[email protected]> Signed-off-by: Mikhail Khludnev <[email protected]>
…earch-project#18357) * search IP/masks via dvFields Signed-off-by: Mikhail Khludnev <[email protected]> * sight test adjustment Signed-off-by: Mikhail Khludnev <[email protected]> * test adjustment + mimicking old behavior Signed-off-by: Mikhail Khludnev <[email protected]> * assert over 1K clauses Signed-off-by: Mikhail Khludnev <[email protected]> * shaping the code Signed-off-by: Mikhail Khludnev <[email protected]> --------- Signed-off-by: Mikhail Khludnev <[email protected]> Signed-off-by: Mikhail Khludnev <[email protected]>
Description
Avoid clauses limit what searching terms_query for IP/masks over docValues fields.
Related Issues
Resolves #17394
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.