Skip to content

Conversation

@javanna
Copy link
Member

@javanna javanna commented Feb 18, 2025

This removes a couple of indirections: the error message for missing shards is always the
same no matter the search phase. This was required to provide a slightly different error
message for open PIT. The previous error was misleading when open PIT did not support
setting allow_partial_search_results, but now that it does, it looks like we can unify
the error message and simplify the code around it.

This removes a couple of indirections: the error message for missing shards is always the
same no matter the search phase.
javanna and others added 3 commits February 18, 2025 10:00
This removes a couple of indirections: the error message for missing shards is always the
same no matter the search phase. This was required to provide a slightly different error
message for open PIT. The previous error was misleading when open PIT did not support
setting allow_partial_search_results, but now that it does, it looks like we can unify
the error message and simplify the code around it.
@javanna javanna added :Search Foundations/Search Catch all for Search Foundations >refactoring and removed WIP labels Feb 18, 2025
@javanna javanna marked this pull request as ready for review February 18, 2025 17:26
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Feb 18, 2025
Copy link
Contributor

@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 nice this has been bothering for a while too :D

@javanna javanna merged commit 80b7879 into elastic:main Feb 18, 2025
17 checks passed
@javanna javanna deleted the refactoring/search_phase_do_check_missing_shards branch February 18, 2025 19:24
elasticsearchmachine pushed a commit that referenced this pull request Feb 19, 2025
…#122916)

This removes a couple of indirections: the error message for missing shards is always the
same no matter the search phase. This was required to provide a slightly different error
message for open PIT. The previous error was misleading when open PIT did not support
setting allow_partial_search_results, but now that it does, it looks like we can unify
the error message and simplify the code around it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>refactoring :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants