Heads up, Solr wranglers! We’ve moved the maxBooleanClauses
setting into your solr.xml
(in your Solr home directory alongside your cores/collections).
<solr>
<int name="maxBooleanClauses">90589</int> <!-- 🛠️ Bump your limit here -->
<shardHandlerFactory name="shardHandlerFactory"
class="HttpShardHandlerFactory">
<int name="socketTimeout">${socketTimeout:600000}</int>
<int name="connTimeout">${connTimeout:60000}</int>
</shardHandlerFactory>
</solr>
org.apache.solr.common.SolrException: Too many boolean clauses (1025).
*
or leading wildcards (*term
) expand to many terms. Increase maxBooleanClauses
Adjust in solr.xml
(as shown above).
Trim your word lists
synonyms.txt
stopwords.txt
protwords.txt
Remove rarely used terms to reduce clause count.
Optimize filter chain
SynonymGraphFilterFactory
, not at index time. Place stop and prot word filters before wildcard or graph filters.
Avoid expansive wildcards
term*
) over leading wildcards. Keep calm and Solr on! 😎🖋️