Query DSL: Allow to control (globally) the max clause count for `bool` query (defaults to 1024), closes #482.

This commit is contained in:
kimchy 2010-11-06 00:59:37 +02:00
parent 9385476340
commit 129b9a3938
1 changed files with 1 additions and 0 deletions

View File

@ -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() {