Query DSL: Allow to control (globally) the max clause count for `bool` query (defaults to 1024), closes #482.
This commit is contained in:
parent
9385476340
commit
129b9a3938
|
@ -45,6 +45,7 @@ public class BoolQueryParser extends AbstractIndexComponent implements XContentQ
|
|||
|
||||
@Inject public BoolQueryParser(Index index, @IndexSettings Settings settings) {
|
||||
super(index, settings);
|
||||
BooleanQuery.setMaxClauseCount(settings.getAsInt("index.query.bool.max_clause_count", BooleanQuery.getMaxClauseCount()));
|
||||
}
|
||||
|
||||
@Override public String[] names() {
|
||||
|
|
Loading…
Reference in New Issue