mirror of https://github.com/apache/lucene.git
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:
parent
d671dd8d89
commit
811ea274ab
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue