Query DSL: `term` filter to have `_cache` set to `true` by default, closes #453,

This commit is contained in:
kimchy 2010-10-26 13:40:14 +02:00
parent 442f1d7677
commit 5804e9132a
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class TermFilterParser extends AbstractIndexComponent implements XContent
@Override public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
XContentParser parser = parseContext.parser();
boolean cache = false;
boolean cache = true; // since usually term filter is on repeating terms, cache it by default
String fieldName = null;
String value = null;