Pass on filterStrategy in XFilteredQuery if query is rewritten
This commit is contained in:
parent
a5bd57ed6c
commit
0b730aae81
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue