You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by "Su, Weiling" <we...@fitchsolutions.com.INVALID> on 2022/08/26 15:44:22 UTC

How to change solr.maxBooleanClauses limit in Solr 8.11 in Solr cloud mode

We have a need to set the maxBooleanClauses=10240 with Solr 8.11 in solr cloud mode.  We overwrite the system variable default through solrcloud.yaml file and rolling restart the severs one by one. The new System variable is shown up in Solr admin’s Java properties page. But it has no effect on Solr query. We still see the error in log.

too many boolean clauses

solrconfig.xml: <maxBooleanClauses> of 10240 is greater than global limit of 1024 and will have no effect set 'maxBooleanClauses' in solr.xml to increase global limit


I checked the documentation, it seems that Solr Cloud is using zookeeper to store solr.xml. (https://solr.apache.org/guide/8_11/format-of-solr-xml.html#defining-solr-xml).

Any ideas on how to make the above configuration changes to reach Solr query?

Thank you,

Weiling

Confidentiality Notice: The information contained in this e-mail and any attachment(s) is confidential and for the use of the addressee(s) only. If you are not the intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete this e-mail and any attachment(s) and notify us immediately. Unauthorized use, reliance, disclosure or copying of the contents of this e-mail and any attachment(s), or any similar action, is strictly prohibited. Fitch Solutions reserves the right, to the extent permitted by applicable law, to retain, monitor and intercept e-mail messages both to and from its systems.

Re: How to change solr.maxBooleanClauses limit in Solr 8.11 in Solr cloud mode

Posted by Shawn Heisey <ap...@elyograg.org.INVALID>.
On 8/26/22 09:44, Su, Weiling wrote:
> I checked the documentation, it seems that Solr Cloud is using zookeeper to store solr.xml. (https://solr.apache.org/guide/8_11/format-of-solr-xml.html#defining-solr-xml).
>
> Any ideas on how to make the above configuration changes to reach Solr query?

SolrCloud *CAN* read solr.xml from zookeeper.  But it will only do so if 
you put solr.xml in your zookeeper.  If you don't, then it will look in 
the solr home for it in the exact same manner that Solr does when NOT 
running in cloud mode.

The solr.xml file is the recommended place to define that setting, not 
solrconfig.xml, due to the way that Lucene implements the setting.

If your solr.xml looks exactly like the version shown in that 
documentation page, then you can set a solr.max.booleanClauses system 
property on the java commandline at Solr startup, and it will be used by 
that solr.xml instead of 1024.

My solr.xml contains this line -- the value is completely hard-set and 
cannot be changed with properties:

   <int name="maxBooleanClauses">4096</int>

Thanks,
Shawn