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

Replacement for scan helper function that uses search_after #2072

Open
banjocustard opened this issue Sep 25, 2022 · 2 comments
Open

Replacement for scan helper function that uses search_after #2072

banjocustard opened this issue Sep 25, 2022 · 2 comments

Comments

@banjocustard
Copy link

I would like a helper function to replace scan, one that uses the search_after parameter with a point in time (PIT) instead of the scroll API.

I use scan frequently, but I would like to switch to using search_after instead of the scroll API, given that is now what is recommended. I appreciate that it is possible to do this using Elasticsearch.open_point_in_time etc., but it would be really useful if the library came with a ready-made helper function given that paging through more than 10,000 hits is presumably quite a common requirement, especially so as there is an existing helper function for the no-longer-recommended scroll API.

@sethmlarson
Copy link
Contributor

Agree that this would be nice to have! I'll raise this as a feature request that all clients can implement for their scan helpers.

@bralbral
Copy link

bralbral commented Apr 5, 2023

Hello! Are there any work in progress on this issue?

I found a ready-made implementation, it may be useful to you - link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants