| The following is the exact error:
Result window is too large, from + size must be less than or equal to: [10000] but was [10725]. See the scroll api for a more efficient way to request large data sets.
To reproduce the problem, I have an index with 11,228 products and issued a query that returned 10,722 hits. The UI returns pages with a page size of 25 products, and so page 1 returned just fine with the first 25. By selecting the last page, which is page 429, I got this error. Pagination parameters are provided to the FullTextQuery by specifying:
query.setFirstResult( ( page - 1) * pageSize ).setMaxResults( pageSize );
This results in 10,700 being the value for the first result. To reproduce the issue, I simply indexed 11,228 products and issued a query that returned 10,722 hits. My UI is designed around a page size of 25 and I then selected last page; resulting in requesting page 429. |