Skip to content

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

Merged
msfroh merged 1 commit into2.17from
backport/backport-15586-to-2.17
Sep 4, 2024
Merged

[Backport 2.17] [Backport 2.x] Introduce ApproximateRangeQuery and ApproximateableQuery (#13788)#15700
msfroh merged 1 commit into2.17from
backport/backport-15586-to-2.17

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
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 <harshavamsi096@gmail.com>
Signed-off-by: Michael Froh <froh@amazon.com>
Co-authored-by: Michael Froh <froh@amazon.com>
(cherry picked from commit 2e9db40)
(cherry picked from commit 3ddb199)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
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.

@codecov
Copy link
Copy Markdown

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
Copy Markdown
Contributor

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

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