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
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