02es请求的数据量超过默认设置的2G报错处理

问题:es请求的数据量超过默认设置的2G报错处理

 

RequestError(400, 'search_phase_execution_exception', 'ReleasableBytesStreamOutput cannot hold more than 2GB of data')

 

全部索引都设置

curl -X PUT 'http://192.168.56.211:9200/*/_settings' -H 'Content-Type: application/json' -d '
{ 
  "index" : { 
      "max_result_window" : 100000000
  }
}
'

 

如果是单个索引设置把*改为具体索引即可

 

posted @ 2023-02-07 12:03  冷夜O  阅读(294)  评论(0)    收藏  举报