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 - add “partial_results” summary flag to SearchResponse #47847

Closed
wants to merge 4 commits into from

Conversation

markharwood
Copy link
Contributor

We have a multitude of flags and conditions that indicate partial failure in our search responses.

These make it hard for clients to answer the most basic question:

"Can I trust these results?"

To aid with that, this PR proposes a simple new "partial_results" boolean in the response which summarises all the reasons for incomplete data (timed out, unavailable shards, cancellations, failures). Client applications should pay close attention to this summary flag and warn users if it is set to true.

Of course, setting the existing allow_partial_search_results flag to false is a way to avoid returning any incomplete data in the first place but this is currently not the default setting and clients need a simple way to understand if they are missing any data.

Relates to #47700

@markharwood markharwood self-assigned this Oct 10, 2019
@markharwood markharwood added the :Search/Search Search-related issues that do not fall into other categories label Oct 10, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

@rjernst rjernst added the Team:Search Meta label for search team label May 4, 2020
@markharwood
Copy link
Contributor Author

Stale and no take-up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants