Elasticsearch - set max_clause_count

后端 未结 4 1679
名媛妹妹
名媛妹妹 2020-12-06 01:43

I have a pretty big terms query in elasticsearch, so I get too_many_clauses: maxClauseCount is set to 1024

I tried increasing it in the elasticsearch.y

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 02:34

    In Elasticsearch 5 index.query.bool.max_clause_count has been deprecated/removed.

    Insert in your elasticsearch.yml file indices.query.bool.max_clause_count : n instead (where n - new supported number of clauses).

    NOTE: Here is link to documentation.

提交回复
热议问题