全文索引的scroll如何使用

全文索引中正则默认返回100条,即使调大也只能返回10000条,请问如果返回更多应该如何配置
REGEXP(schema_name.prop_name, regexp_string, row_limit, timeout)
row_limit:可选项。指定要返回的行数。默认值为100。
timeout:可选项。指定超时时间。单位:毫秒(ms)。默认值为200。

如何设置超过10000则报错,“reason”:“Result window is too large, from + size must be less than or equal to: [10000] but was [20000]. 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.”,“type”:“illegal_argument_exception”

请问这个scroll api应该如何使用?

10000应该是ES的限制,可以调整下ES的配置再试下