mirror of https://github.com/apache/lucene.git
SOLR-10921: set setMaxClauseCount for every SolrConfig creation to work around test framework issues
This commit is contained in:
parent
4e033a0f4e
commit
78731ea8f4
|
@ -375,6 +375,14 @@ public class SolrConfig extends Config implements MapSerializable {
|
|||
classVsSolrPluginInfo = Collections.unmodifiableMap(map);
|
||||
}
|
||||
|
||||
{
|
||||
// non-static setMaxClauseCount because the test framework sometimes reverts the value on us and
|
||||
// the static setting above is only executed once. This re-sets the value every time a SolrConfig
|
||||
// obect is created. See SOLR-10921
|
||||
BooleanQuery.setMaxClauseCount(Integer.MAX_VALUE-1);
|
||||
}
|
||||
|
||||
|
||||
public static class SolrPluginInfo {
|
||||
|
||||
public final Class clazz;
|
||||
|
|
Loading…
Reference in New Issue