Max limit on the number of values I can specify in the ids filter or generally query clause?

前端 未结 4 1529
北海茫月
北海茫月 2020-11-29 00:53

In elasticsearch what is the max limit to specify the value in the number of values a match can be performed on? I read somewhere that it is 1024 but is also configurable. I

4条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 01:26

    Yes! The number of values in fields is configurable. By default it is limited to 1024. You can configure it in the elasticsearch.yml file.

    indices.query.bool.max_clause_count: 10000

    Note: Increasing the limit will lead to high memory and CPU usage.

    Refer to these links for more info:

    https://groups.google.com/forum/#!topic/elasticsearch/LqywKHKWbeI

    https://github.com/elasticsearch/elasticsearch/issues/482

    http://elasticsearch-users.115913.n3.nabble.com/index-query-bool-max-clause-count-Setting-and-TermsQueryParser-td3050751.html

    http://elasticsearch-users.115913.n3.nabble.com/Query-string-length-limit-td4054066.html

提交回复
热议问题