Make sure HashQParserPlugin calls rewrite before createWeight.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1687563 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2015-06-25 15:41:23 +00:00
parent d671dd8d89
commit 811ea274ab
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ public class HashQParserPlugin extends QParserPlugin {
}
ConstantScoreQuery constantScoreQuery = new ConstantScoreQuery(new BitsFilter(fixedBitSets));
return constantScoreQuery.createWeight(searcher, false);
return searcher.rewrite(constantScoreQuery).createWeight(searcher, false);
}
public class BitsFilter extends Filter {