Changing maxBooleanClauses

Steps to define the maximum number of clauses in a boolean query.

The maxBooleanClauses parameter defines the maximum number of clauses in a boolean query. An exception is thrown if this value is exceeded. You must change the maxBooleanClauses parameter in solrconfig.xml on all search cores, restart the nodes to make the change effective. Reloading the Solr cores does not make this change effective.

Note: Limitations and Solr known issues apply to DSE Search queries, including:
  • The 1024 maxBoolean clause limit in SOLR-4586.
  • The Solr BooleanQuery MaxClauseCount is a static variable with a single value across the entire JVM. You must change the value on all search cores.