w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Max limit on the number of values I can specify in the ids filter or generally query clause?

Yes! Number of values in fields are configurable.By default its limited to 1024.You can configure in elasticsearch.yml file.

indices.query.bool.max_clause_count:10000

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

Refer 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

HOpe this helps!!





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.