Elasticsearch exception [type=illegal_argument_exception, reason=Result window is too large, from + size must be less than or equal to: [10000] but was [20720]. 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.]
时间: 2024-04-19 08:23:51 浏览: 12
您遇到的错误是 Elasticsearch 的一个异常,类型为 illegal_argument_exception,原因是搜索结果的窗口太大。具体来说,from + size 的值必须小于等于 10000,但实际的值是 20720。要请求大数据集的更高效方式,可以参考 Elasticsearch 的 scroll API。此限制可以通过更改 index.max_result_window 索引级别设置来进行调整。
相关问题
elasticsearch exception type=illeagal_argument_exception reason = failed to parse date field
这个问题是关于 Elasticsearch 的异常类型和错误原因。这个错误的原因是解析日期字段失败,导致出现了非法参数异常。具体的解决方法可以查看 Elasticsearch 的文档或者咨询相关的技术人员。
Elasticsearch exception [type=illegal_argument_exception, reason=Failed to parse value [0] for setting [index.number_of_shards] must be >= 1
这个错误意味着在Elasticsearch中,索引的分片数需要大于等于1,但是你设置的值为0或负数了。你需要将index.number_of_shards的值修改为大于等于1的整数值,例如:
PUT /my_index
{
"settings": {
"index.number_of_shards": 1
}
}
这样就可以将分片数设置为1了。如果你需要更多的分片,可以适当增加这个值。