-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Search Queries in parallel - part 3 #117149
Search Queries in parallel - part 3 #117149
Conversation
@elasticmachine update branch |
@elasticmachine update branch |
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
server/src/internalClusterTest/java/org/elasticsearch/aliases/IndexAliasesIT.java
Show resolved
Hide resolved
assertResponse( | ||
assertResponses(response -> { | ||
assertHitCount(response, 3); | ||
assertThat(response.getHits().getMaxScore(), equalTo(response.getHits().getHits()[0].getScore())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would assume that this is safe, but this is a new addition for this test block, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noticed it below; in L#174 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered adding an assertion for the first prepareSearch
request safe. I did that to group calls under assertResponses.
The opposite would be problematic.
server/src/internalClusterTest/java/org/elasticsearch/search/query/MultiMatchQueryIT.java
Outdated
Show resolved
Hide resolved
...lClusterTest/java/org/elasticsearch/search/fetch/subphase/highlight/HighlighterSearchIT.java
Outdated
Show resolved
Hide resolved
...lClusterTest/java/org/elasticsearch/search/fetch/subphase/highlight/HighlighterSearchIT.java
Outdated
Show resolved
Hide resolved
...lClusterTest/java/org/elasticsearch/search/fetch/subphase/highlight/HighlighterSearchIT.java
Outdated
Show resolved
Hide resolved
...lClusterTest/java/org/elasticsearch/search/fetch/subphase/highlight/HighlighterSearchIT.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks @drempapis !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, ideally delete those log lines I pointed out inline before merging though :)
prepareSearch("test", "foos").setQuery(QueryBuilders.matchAllQuery()), | ||
searchResponse -> assertHits(searchResponse.getHits(), "1", "2", "3", "4") | ||
); | ||
|
||
logger.info("--> checking index and alias wildcard search"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine to delete these log lines, there's little to no value in them now that they don't correspond to exactly when the queries run anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @original-brownbear. I will proceed with those deletions before merging. I am on the same page
please see #116812