Skip to content

Add search_after option to search api for pagination #9374

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

Closed
martijnvg opened this issue Jan 21, 2015 · 2 comments
Closed

Add search_after option to search api for pagination #9374

martijnvg opened this issue Jan 21, 2015 · 2 comments
Labels
discuss :Search/Search Search-related issues that do not fall into other categories

Comments

@martijnvg
Copy link
Member

Adding search_after option to the search api will allow better deep pagination support for search request that don't use the scroll api.

The search_after option should be used to hold the last seen sort value for each search request being executed with the same query (just like updating the from option). Although in this case we don't keep open a consistent view of all the shards, like we do with scroll search, it is a good alternative for deep pagination for normal search requests that use from option. (actually the only one that doesn't cause jvm heap issues without maintaining open search contexts during subsequent scroll requests)

@martijnvg martijnvg added discuss :Search/Search Search-related issues that do not fall into other categories labels Jan 21, 2015
@clintongormley
Copy link
Contributor

+1

@clintongormley
Copy link
Contributor

Duplicate of #8192

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

No branches or pull requests

2 participants