Skip to content

Conversation

@dnhatn
Copy link
Member

@dnhatn dnhatn commented Feb 7, 2020

We need to either exclude null responses from the scroll search response or always create a search context for every target shards, although that scroll query can be written to match_no_docs. Otherwise, we won't find search_context for subsequent scroll requests.

This commit implements the latter option as it's less error-prone.

I labelled this non-issue for an unreleased bug.

Relates #51708

@dnhatn dnhatn added >non-issue :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.7.0 labels Feb 7, 2020
@dnhatn dnhatn requested a review from jpountz February 7, 2020 20:01
@elasticmachine
Copy link
Collaborator

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

@dnhatn
Copy link
Member Author

dnhatn commented Feb 8, 2020

Thanks Adrien.

@dnhatn dnhatn merged commit 9b456cf into elastic:master Feb 8, 2020
@dnhatn dnhatn deleted the scroll-match-no-docs branch February 8, 2020 16:26
dnhatn added a commit that referenced this pull request Feb 8, 2020
We need to either exclude null responses from the scroll search response
or always create a search context for every target shards, although that
scroll query can be written to match_no_docs. Otherwise, we won't find
search_context for subsequent scroll requests.

This commit implements the latter option as it's less error-prone.

Relates #51708
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search/Search Search-related issues that do not fall into other categories v7.7.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants