Skip to content

[Backport 2.x] search_after query optimization with shard/segment level short cuttin…#7727

Merged
andrross merged 1 commit intoopensearch-project:2.xfrom
gashutos:2.x
May 24, 2023
Merged

[Backport 2.x] search_after query optimization with shard/segment level short cuttin…#7727
andrross merged 1 commit intoopensearch-project:2.xfrom
gashutos:2.x

Conversation

@gashutos
Copy link
Copy Markdown
Contributor

Backport of #7453

opensearch-project#7453)

* search_after query optimization with shard/segment level short cutting

Signed-off-by: Chaitanya Gohel <gashutos@amazon.com>

* Correcting logical && operator

Signed-off-by: Chaitanya Gohel <gashutos@amazon.com>

* Addressig review comments

Signed-off-by: Chaitanya Gohel <gashutos@amazon.com>

* Correcting NPE

Signed-off-by: gashutos <gashutos@amazon.com>

* Fixing failed integ

Signed-off-by: gashutos <gashutos@amazon.com>

* Addressing review comments and fixing some more integ

Signed-off-by: Chaitanya Gohel <gashutos@amazon.com>

* Addressing review comments and fixing some more integ

Signed-off-by: Chaitanya Gohel <gashutos@amazon.com>

* Refactoring a bit to aggressive null checks

Signed-off-by: Chaitanya Gohel <gashutos@amazon.com>

* Adding unit tests for MinAndMax methods

Signed-off-by: gashutos <gashutos@amazon.com>

---------

Signed-off-by: Chaitanya Gohel <gashutos@amazon.com>
Signed-off-by: gashutos <gashutos@amazon.com>
Signed-off-by: Chaitanya Gohel <104654647+gashutos@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

@gashutos
Copy link
Copy Markdown
Contributor Author

@reta thanks for approving !
Need one more help on re-triggering ./gradlew check. I opened issue for flaky test #7729

@github-actions
Copy link
Copy Markdown
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.search.SearchWeightedRoutingIT.testStrictWeightedRoutingWithCustomString

@codecov
Copy link
Copy Markdown

codecov bot commented May 24, 2023

Codecov Report

Merging #7727 (baa0e23) into 2.x (06fc7de) will increase coverage by 0.06%.
The diff coverage is 70.37%.

@@             Coverage Diff              @@
##                2.x    #7727      +/-   ##
============================================
+ Coverage     70.49%   70.56%   +0.06%     
- Complexity    56373    56378       +5     
============================================
  Files          4663     4663              
  Lines        267604   267646      +42     
  Branches      39626    39637      +11     
============================================
+ Hits         188658   188854     +196     
+ Misses        62686    62480     -206     
- Partials      16260    16312      +52     
Impacted Files Coverage Δ
...va/org/opensearch/search/DefaultSearchContext.java 78.92% <ø> (+2.03%) ⬆️
...ensearch/search/internal/ContextIndexSearcher.java 71.87% <45.00%> (-4.19%) ⬇️
...main/java/org/opensearch/search/SearchService.java 71.71% <70.58%> (-0.03%) ⬇️
...a/org/opensearch/search/sort/FieldSortBuilder.java 67.43% <100.00%> (+0.10%) ⬆️
...ain/java/org/opensearch/search/sort/MinAndMax.java 100.00% <100.00%> (ø)

... and 468 files with indirect coverage changes

@gashutos
Copy link
Copy Markdown
Contributor Author

We should relax this codecov/patch — 70.37% of diff hit (target 70.49%) in backport PRs

@andrross andrross merged commit 6308fb0 into opensearch-project:2.x May 24, 2023
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.

3 participants