code: private static void assureNumberOfClausesLimit(int numberOfClauses) {
        if (numberOfClauses > BooleanQuery.getMaxClauseCount()) {
           log.overridingBooleanQueryMaxClauseCount(numberOfClauses);
           BooleanQuery.setMaxClauseCount(numberOfClauses);
        }
     }
docs: BooleanQuery has a static (but reconfigurable) limit for the number of clauses.
  If any node was able to bypass this limit, we'll need to assume that this limit
  was somehow relaxed and some point in time, so we need to apply the same configuration
  to this node.
  
  @param numberOfClauses The number of clauses being deserialized