How to set max_clause_count in elasticsearch?

I keep getting max_clause_count error in elasticsearch.

I'm directly passing more than 2000 id's and i'm getting max_clause_count error.

How to overcome this...

Can you use TermsQuery instead of making a new query clause for each of your IDs?

Mike McCandless

Thanks for your response.

Do you have any example or link to refer.

See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html

Mike McCandless

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.