-
Notifications
You must be signed in to change notification settings - Fork 782
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
Using the Scroll API with KNP Paginator #1546
Comments
Also interested in this. I increased max_result_window: 50000 for now, but this isn't an ideal solution. |
I added a scroll paginator to my fork but I only added the minimal that I needed to get it working: master...modstore:add-scroll-paginator |
@modstore Would you still be interested in making a PR based on your fork? |
@XWB I'll go back to it and make a PR as soon as I've got some time. |
Excellent :) |
Hey @XWB sorry I haven't been able to get to this yet. Unfortunately I'm getting busier at the moment not less, so I'm not sure if/when I'll be able to get to this. I have been using this on a live site for csv generation for quite a while now, so I am happy to make a PR with it as is. Otherwise I guess it's just good as a reference for whoever needs it and can get to it. |
I am searching for a way to use the Scroll API with the KNP paginator. Now I get the following exception when going to 1918 of my results. I could not find any documentation on this.
Result window is too large, from + size must be less than or equal to: [10000] but was [46032]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting. [reason: all shards failed]
Current code looks like bellow, this works fine as long as you dont huge amounts of results.
The text was updated successfully, but these errors were encountered: