Query DSL: Replace index.query.bool.max_clause_count with indices.query.bool.max_clause_count (old one still supported), closes #1538.

This commit is contained in:
Shay Banon 2011-12-13 17:47:09 +02:00
parent 0d195eb368
commit 0cd38f505d
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class BoolQueryParser implements QueryParser {
@Inject
public BoolQueryParser(Settings settings) {
BooleanQuery.setMaxClauseCount(settings.getAsInt("index.query.bool.max_clause_count", BooleanQuery.getMaxClauseCount()));
BooleanQuery.setMaxClauseCount(settings.getAsInt("index.query.bool.max_clause_count", settings.getAsInt("indices.query.bool.max_clause_count", BooleanQuery.getMaxClauseCount())));
}
@Override