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

Search Queries in parallel - part 3 #117149

Conversation

drempapis
Copy link
Contributor

please see #116812

@drempapis drempapis self-assigned this Nov 20, 2024
@drempapis drempapis added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations >test Issues or PRs that are addressing/adding tests labels Nov 20, 2024
@drempapis
Copy link
Contributor Author

@elasticmachine update branch

@drempapis drempapis changed the title Search Queries in parallel - part 2 Search Queries in parallel - part 3 Nov 20, 2024
@drempapis
Copy link
Contributor Author

@elasticmachine update branch

@drempapis drempapis marked this pull request as ready for review November 21, 2024 09:26
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@drempapis drempapis requested a review from pmpailis November 27, 2024 13:56
assertResponse(
assertResponses(response -> {
assertHitCount(response, 3);
assertThat(response.getHits().getMaxScore(), equalTo(response.getHits().getHits()[0].getScore()));
Copy link
Contributor

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?

Copy link
Contributor

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 :)

Copy link
Contributor Author

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.

@drempapis drempapis requested a review from pmpailis November 28, 2024 08:46
Copy link
Contributor

@pmpailis pmpailis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @drempapis !

Copy link
Member

@original-brownbear original-brownbear left a 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");
Copy link
Member

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.

Copy link
Contributor Author

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

@drempapis drempapis merged commit d2a4c70 into elastic:main Dec 2, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch >test Issues or PRs that are addressing/adding tests v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants