Skip to content

Commit 5804e91

Browse files
committed
Query DSL: term filter to have _cache set to true by default, closes elastic#453,
1 parent 442f1d7 commit 5804e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/TermFilterParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class TermFilterParser extends AbstractIndexComponent implements XContent
5353
@Override public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException {
5454
XContentParser parser = parseContext.parser();
5555

56-
boolean cache = false;
56+
boolean cache = true; // since usually term filter is on repeating terms, cache it by default
5757
String fieldName = null;
5858
String value = null;
5959

0 commit comments

Comments
 (0)