From 5804e9132a3d798b1b1df07e39cce7dcc5ab1dd1 Mon Sep 17 00:00:00 2001 From: kimchy Date: Tue, 26 Oct 2010 13:40:14 +0200 Subject: [PATCH] Query DSL: `term` filter to have `_cache` set to `true` by default, closes #453, --- .../elasticsearch/index/query/xcontent/TermFilterParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/TermFilterParser.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/TermFilterParser.java index 87c2edeba5f..a4041e1e579 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/TermFilterParser.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/TermFilterParser.java @@ -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;