Result window is too large, from + size must be less than or equal to: [10000] but was [12000]

拼搏现实的明天。 2022-11-18 13:59 292阅读 0赞

Result window is too large, from + size must be less than or equal to: [10000] but was [12000]. 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.

解决:
es已经提示可通过修改index.max_result_window配置解决这个问题。
官方针对index的相关配置介:绍:https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html

步骤:
使用
1.查看index配置,发现没有max_result_window,默认10000

  1. GET /xxxxxx/_settings

2.配置max_result_window,无需重启直接生效

  1. PUT /xxxxxx/_settings?preserve_existing=true
  2. {
  3. "index":{
  4. "max_result_window":2000000000
  5. }
  6. }

发表评论

表情:
评论列表 (有 0 条评论,292人围观)

还没有评论,来说两句吧...

相关阅读