lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Heisey (JIRA)" <>
Subject [jira] [Commented] (SOLR-4586) Increase default maxBooleanClauses
Date Mon, 03 Nov 2014 22:21:34 GMT


Shawn Heisey commented on SOLR-4586:

[~reparker], maxBooleanClauses is a global Lucene setting across the entire application, and
the last thing to set that value will "win" every time.

If you have any configs with the default of 1024 and you reload any of those cores after reloading
the one that sets it to 2048, then it will be changed back -- for the entire application.
 The best option is to set the higher limit in *every* solrconfig.xml file, or remove the
setting from all of them except one.

The javadocs for the Lucene setter method do not indicate this global nature, but I assure
you that I have looked at the code, and it is indeed global.

> Increase default maxBooleanClauses
> ----------------------------------
>                 Key: SOLR-4586
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 4.2
>         Environment: 4.3-SNAPSHOT 1456767M - ncindex - 2013-03-15 13:11:50
>            Reporter: Shawn Heisey
>         Attachments: SOLR-4586.patch, SOLR-4586.patch, SOLR-4586.patch, SOLR-4586.patch,
SOLR-4586.patch, SOLR-4586_verify_maxClauses.patch
> In the #solr IRC channel, I mentioned the maxBooleanClauses limitation to someone asking
a question about queries.  Mark Miller told me that maxBooleanClauses no longer applies, that
the limitation was removed from Lucene sometime in the 3.x series.  The config still shows
up in the example even in the just-released 4.2.
> Checking through the source code, I found that the config option is parsed and the value
stored in objects, but does not actually seem to be used by anything.  I removed every trace
of it that I could find, and all tests still pass.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message