Pass on filterStrategy in XFilteredQuery if query is rewritten

This commit is contained in:
Simon Willnauer 2013-01-22 12:40:21 +01:00
parent a5bd57ed6c
commit 0b730aae81
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ public class XFilteredQuery extends Query {
if (queryRewritten != query) { if (queryRewritten != query) {
// rewrite to a new FilteredQuery wrapping the rewritten 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()); rewritten.setBoost(this.getBoost());
return rewritten; return rewritten;
} else { } else {