Skip to content
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

[Backport 2.17] [Backport 2.x] Introduce ApproximateRangeQuery and ApproximateableQuery (#13788) #15700

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 3ddb199 from #15586.

This introduces a basic "approximation" framework that improves
query performance by modifying the query in a way that should be
functionally equivalent.

To start, we can reduce the bounds of a range query in order to
satisfy the `track_total_hits` value (which defaults to 10,000).

---------

Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: Michael Froh <[email protected]>
Co-authored-by: Michael Froh <[email protected]>
(cherry picked from commit 2e9db40)
(cherry picked from commit 3ddb199)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Sep 4, 2024

❕ Gradle check result for 8795cef: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.indices.replication.SegmentReplicationIT.testReplicaAlreadyAtCheckpoint

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

Attention: Patch coverage is 31.92308% with 177 lines in your changes missing coverage. Please review.

Project coverage is 71.64%. Comparing base (bd5041f) to head (8795cef).
Report is 2 commits behind head on 2.17.

Files with missing lines Patch % Lines
...search/approximate/ApproximatePointRangeQuery.java 34.67% 115 Missing and 15 partials ⚠️
...arch/search/approximate/ApproximateScoreQuery.java 18.51% 21 Missing and 1 partial ⚠️
.../approximate/ApproximateIndexOrDocValuesQuery.java 23.52% 13 Missing ⚠️
...a/org/opensearch/index/mapper/DateFieldMapper.java 18.18% 6 Missing and 3 partials ⚠️
...ensearch/search/internal/ContextIndexSearcher.java 0.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               2.17   #15700      +/-   ##
============================================
- Coverage     71.77%   71.64%   -0.14%     
+ Complexity    64298    64226      -72     
============================================
  Files          5251     5255       +4     
  Lines        300482   300735     +253     
  Branches      43724    43785      +61     
============================================
- Hits         215672   215451     -221     
- Misses        66760    67211     +451     
- Partials      18050    18073      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@msfroh
Copy link
Collaborator

msfroh commented Sep 4, 2024

I'm going to wait for #15704 to get merged, then merge this one, then backport that one.

shuffle, shuffle, shuffle

@msfroh msfroh merged commit 2742e74 into 2.17 Sep 4, 2024
57 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant