提交 a62f6ace 编写于 作者: FelixHPP's avatar FelixHPP

。。

上级 7c639bfe
## 常见问题
### es查询查过1024个元素报错
报错如下:
```
Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: too_many_clauses: maxClauseCount is set to 1024
```
原因:es的in查询,in中id大于1024个,导致es报错,es默认支持元素数量为1024个
```yaml
# es 5.x以下:
index.query.bool.max_clause_count: 10240
# es 5.x以上:
indices.query.bool.max_clause_count: 300000
```
### 报错`field expansion matches too many fields`
```
"reason": "field expansion matches too many fields, limit: 1024, got: 15448"
```
处理方案同【es查询查过1024个元素】
### 字段上限错误
```
{“error”:{“root_cause”:[{“type”:“remote_transport_exception”,“reason”:"[node1][ip:9300][indices:data/write/update[s]]"}],“type”:“illegal_argument_exception”,“reason”:“Limit of total fields [1000] in index [xxx has been exceeded”},“status”:400}
```
解决方式:
```
PUT index名/_settings
{
"index.mapping.total_fields.limit": 5000
}
```
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册