From d487d809ea2e99a853cd7c845db1b14d8a160e72 Mon Sep 17 00:00:00 2001 From: kimchy Date: Wed, 27 Oct 2010 20:34:02 +0200 Subject: [PATCH] Query DSL: Revert back and have range, terms, and prefix filter _cache set to true, closes #456. --- .../elasticsearch/index/query/xcontent/PrefixFilterParser.java | 2 +- .../elasticsearch/index/query/xcontent/RangeFilterParser.java | 2 +- .../elasticsearch/index/query/xcontent/TermsFilterParser.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/PrefixFilterParser.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/PrefixFilterParser.java index f13120e6aeb..eff78860573 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/PrefixFilterParser.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/PrefixFilterParser.java @@ -53,7 +53,7 @@ public class PrefixFilterParser extends AbstractIndexComponent implements XConte @Override public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); - boolean cache = false; + boolean cache = true; String fieldName = null; String value = null; diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/RangeFilterParser.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/RangeFilterParser.java index 1757979e063..4f9bfeaf6ec 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/RangeFilterParser.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/RangeFilterParser.java @@ -52,7 +52,7 @@ public class RangeFilterParser extends AbstractIndexComponent implements XConten @Override public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); - boolean cache = false; + boolean cache = true; String fieldName = null; String from = null; String to = null; diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/TermsFilterParser.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/TermsFilterParser.java index 512e3502a51..58be4819212 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/TermsFilterParser.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/query/xcontent/TermsFilterParser.java @@ -56,7 +56,7 @@ public class TermsFilterParser extends AbstractIndexComponent implements XConten XContentParser parser = parseContext.parser(); MapperService.SmartNameFieldMappers smartNameFieldMappers = null; - boolean cache = false; + boolean cache = true; TermsFilter termsFilter = new PublicTermsFilter(); String filterName = null; String currentFieldName = null;