Too many records for pagination

(from github.com/luigigf49)
Hi marevol,
when results are above 10.000 records pagination fails and the error message is:

QueryPhaseExecutionException[Result window is too large, from + size must be less than or equal to: [10000] but was [16000]. 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.]; }{[z3wbKR-jQhWRaXdcJnNaDg][fess.20180525][1]:

How can I change ‘index.max_result_window’ ?

Many thanks
Luigi

(from github.com/marevol)
See Index Modules.
It’s elasticsearch setting, but it’s better to avoid a deep scrolling without scroll api.

(from github.com/luigigf49)
Ok.

Thanx
Luigi