Skip to content

enhancement/ienumerable searchafter descriptor #5417

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

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

stevejgordon
Copy link
Contributor

Fixes #5416.

Since the sort from a previous search is represented as IReadOnlyCollection<object> it's reasonable that consumers may want to pass this unaltered into the next search. The SearchRequest defines this property as an IList<object> which we can't address without breaking changes. However, this PR can improve the fluent usage by providing an IEnumerable<object> overload, avoiding the need to call ToList() or ToArray() on the previous sort.

@stevejgordon stevejgordon requested a review from Mpdreamz March 20, 2021 09:17
@stevejgordon stevejgordon changed the base branch from master to 7.12 March 20, 2021 09:18
@elastic elastic deleted a comment from cla-checker-service bot Mar 20, 2021
@stevejgordon stevejgordon reopened this Mar 20, 2021
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

LGTM

@stevejgordon stevejgordon merged commit 0387d63 into 7.12 Mar 22, 2021
@stevejgordon stevejgordon deleted the enhancement/ienumerable-searchafter-descriptor branch March 22, 2021 13:51
stevejgordon added a commit that referenced this pull request Mar 22, 2021
Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
stevejgordon added a commit that referenced this pull request Mar 24, 2021
Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SearchAfter method overload with params argument translated into wrong json request
2 participants