5

Does ElasticSearch have a size limit on its JSON queries?

e.g. If I filter using ids, and I build up a list of 1 million+ ids, will the request be rejected?

In theory there must be a ceiling. But I can't find any documentation on it.

2
  • 1
    Which API are you asking for ? If you are going to use search API with terms query there is a limit of 65,536 terms elastic.co/guide/en/elasticsearch/reference/current/… Commented Feb 15, 2021 at 21:40
  • Actually this is perfect. Yes I'm using the search API with terms. Commented Feb 16, 2021 at 12:01

1 Answer 1

3

indices.query.bool.max_clause_count (Static, integer) Maximum number of clauses a Lucene BooleanQuery can contain. Defaults to 1024

Refer to this official documentation, to know more about this setting

Add the following configuration in the elasticsearch.yml file to increase the maximum number of clauses.

indices.query.bool.max_clause_count:4096
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.