From 0b730aae817d8eec9bb0c3cd6b819993a9a09955 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Tue, 22 Jan 2013 12:40:21 +0100 Subject: [PATCH] Pass on filterStrategy in XFilteredQuery if query is rewritten --- .../org/elasticsearch/common/lucene/search/XFilteredQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/common/lucene/search/XFilteredQuery.java b/src/main/java/org/elasticsearch/common/lucene/search/XFilteredQuery.java index b7e52389887..1bcb20ad98f 100644 --- a/src/main/java/org/elasticsearch/common/lucene/search/XFilteredQuery.java +++ b/src/main/java/org/elasticsearch/common/lucene/search/XFilteredQuery.java @@ -365,7 +365,7 @@ public class XFilteredQuery extends Query { if (queryRewritten != query) { // rewrite to a new FilteredQuery wrapping the rewritten query - final Query rewritten = new XFilteredQuery(queryRewritten, filter); + final Query rewritten = new XFilteredQuery(queryRewritten, filter, strategy); rewritten.setBoost(this.getBoost()); return rewritten; } else {