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

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

bug记录

最近在学Elasticsearch,查询报错Result window is too large, from + size must be less than or equal to: [10000]

记录下解决方法

错误信息:Result window is too large, from + size must be less than or equal to: [10000]

这是由于默认最大查询数量为10000,而我们代码中设置的查询数量大于这个数了。


因为我需要对es内的数据进行全量去重,所以设置了查询数为100000,所以导致报错。

9920220ef8234284a25f5e0bee57fc6c.png

解决方案

使用postman或者其他工具发送 PUT请求 :ip:端口/索引名称/_settings

请求体:

{
  "index":{
    "max_result_window":1000000
  }
}

17f9b5722e8a40f3b715d9dca842994e.png

或者 使用kibana,直接运行以下命令

PUT 索引名称/_settings
{
  "index":{
    "max_result_window":1000000
  }
}
相关文章
|
9月前
GEE错误——Layer error: Image.connectedPixelCount: Segment size calculation on floating point bands is n
GEE错误——Layer error: Image.connectedPixelCount: Segment size calculation on floating point bands is n
95 0
|
9月前
【Simulink】报错:Size mismatch (size [2 x 1] ~= size [1 x 1]). The size to the left is the size of the l
【Simulink】报错:Size mismatch (size [2 x 1] ~= size [1 x 1]). The size to the left is the size of the l
Result window is too large, from + size must be less than or equal to: [10000]
Result window is too large, from + size must be less than or equal to: [10000]
YOLO V5出现RuntimeError: result type Float can‘t be cast to the desired output type long int解决方法
YOLO V5出现RuntimeError: result type Float can‘t be cast to the desired output type long int解决方法
782 0
CVI2012报错:Function imaqMorphology: (errorCode == -1074396154 [0xbff60406]). The image is not large e
CVI2012报错:Function imaqMorphology: (errorCode == -1074396154 [0xbff60406]). The image is not large e
|
JSON 数据格式
ValueError: With n_samples=0, test_size=0.15 and train_size=None, the resulting train set will be em
ValueError: With n_samples=0, test_size=0.15 and train_size=None, the resulting train set will be em
577 0
ValueError: With n_samples=0, test_size=0.15 and train_size=None, the resulting train set will be em
|
人工智能 C++ Python
LeetCode 961. N-Repeated Element in Size 2N Array
LeetCode 961. N-Repeated Element in Size 2N Array
201 0
成功解决lightgbm.basic.LightGBMError: Parameter max_depth should be of type int, got “0.02“
成功解决lightgbm.basic.LightGBMError: Parameter max_depth should be of type int, got “0.02“
|
数据库
Incorrect result size: expected 1, actual 2
Incorrect result size: expected 1, actual 2
953 0
成功解决DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change
成功解决DataConversionWarning: A column-vector y was passed when a 1d array was expected. Please change