-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Add phase failures to search responses #122788
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
base: main
Are you sure you want to change the base?
Conversation
ca28a76
to
c26330c
Compare
Hi @thecoop, I've created a changelog YAML for you. |
Hi @thecoop, I've updated the changelog YAML for you. |
I think this idea has merit. I would like to "see" what it looks like in an API response. I also don't think "subsidiaryFailures" is a good name. They key is that these are failures that would not "fail" the result that are unrelated to remote clusters or individual shards. Looking at the API as it is now, I think the response would look like:
maybe it should be called "phase_failures" or "additional_failures" or "partial_failures"? The key thing is that the failures:
|
I like An example JSON structure can be seen https://github.com/elastic/elasticsearch/pull/122788/files#diff-e69bede2f385a8806c0d1784ed73c218fc172666cb9fbdf8fdde728bb4f12e57. I'll of course add more tests, docs, and examples once the core idea has been cleared. |
Do you have an example of a failure that would fall in this new bucket? Are these coord level errors that don't fit into shard failures perhaps ? I have a hard time wrapping my head around this new concept. Also, where are these failures expected to be consumed? |
926a386
to
0873098
Compare
d925c23
to
20b2c76
Compare
Warning It looks like this PR modifies one or more |
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
Warning It looks like this PR modifies one or more |
Hi @thecoop, I've created a changelog YAML for you. |
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 this is good. I have some name changes that need addressed and we should have a yaml test.
One other thing is we need to ensure docs & specs are updated to include this change.
Also, could you post what the response looks like when there is a failure?
Second part of #116796, following on from #121784
Expose reranker failure information as part of a search response, in a new
phase_failures
fieldResolves #116796