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

Idea: Add pagination in Elasticsearch #18

Open
llermaly opened this issue Jun 24, 2023 · 0 comments
Open

Idea: Add pagination in Elasticsearch #18

llermaly opened this issue Jun 24, 2023 · 0 comments

Comments

@llermaly
Copy link

If you set the sample to more than 10,000 (elasticsearch default) it will crash.

Error: [400 Bad Request] search_phase_execution_exception: all shards failed

The reccomended way to do deep pagination is using search_after
https://www.elastic.co/guide/en/elasticsearch/reference/current/paginate-search-results.html#search-after

I'm not familiar with go , but that functionality is currently available in the Go client:
https://github.com/elastic/go-elasticsearch/blob/4ea9db9cf63079fd1dbdc92e44737869f40589d9/_examples/xkcdsearch/store_test.go#L130

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

No branches or pull requests

1 participant