Affects Version/s: 8.10
NXP-19194 we use Elasticsearch 2.x and it implies a limit in the number of results for a query.
The limit is set by the index.max_result_window elasticsearch option which is 10000 by default.
Note that the limitation is not only that you can not return more than 10k (the size param)
but also you can not get results above 10k, so from + size must be < 10k.
A PageProvider that returns more than 10k match will work until asking for a page above 10k.
Page Provider should limit the navigation to a certain number of pages to stay on the result window.
The page provider navigation is now limited to the first 10k documents (this is the default maximum result window defined in Elasticsearch).
When there is more than 10k results there is no more button to go to the last page or to go to a next page above this range.
The limit of 10k can be changed using the configuration service by setting the property: org.nuxeo.elasticsearch.provider.maxResultWindow.