Errors are reported as follows:
Caused by: org.elasticsearch.common.io.stream.NotSerializableExceptionWrapper: too_many_clauses: maxClauseCount is set to 1024
Cause: in the in query of ES, the IDS in the in are greater than 1024, resulting in ES error. The default number of elements supported by ES is 1024
Solution:
Edit elasticsearch.yml and add the following configuration:
index.query.bool.max_clause_count: 10240
An error is reported in the new version. The configuration item name has been modified. The following fields need to be added:
indices.query.bool.max_clause_count: 300000
Note YML syntax: there is a space after the colon
Similar Posts:
- Fielddata is disabled on text fields by default. Set fielddata=true on [gender] in order to load …
- Hive SemanticException:Expression not in GROUP BY
- [Solved] Elasticsearch:exception [type=search_phase_execution_exception, reason=all shards failed]
- [Solved] must appear in the GROUP BY clause or be used in an aggregate function
- Error: not a group by expression [How to Solve]
- [Solved] ElasticSearch Error: FORBIDDEN/12/index read-only/allow delete (api) ,read_only_allow_delete Set windows
- org.hibernate.QueryException: could not resolve property
- [Solved] Elasticsearch Error: “java.lang.IllegalArgumentException: Rejecting mapping update to [xxx] as the final mapping would have more than 1 type: [_doc, log]””
- [Solved] Docker Run ElasticSearch Error: docker: invalid reference format: repository name must be lowercase.
- Elasticsearch startup error, bootstrap checks failed