Fix rewrite set twice in WildcardQueryParser

Closes #12207
This commit is contained in:
Alex Ksikes 2015-07-13 17:31:57 +02:00
parent 9faa3c6756
commit 64f981fc32
1 changed files with 0 additions and 1 deletions

View File

@ -103,7 +103,6 @@ public class WildcardQueryParser implements QueryParser {
WildcardQuery wildcardQuery = new WildcardQuery(new Term(fieldName, valueBytes));
QueryParsers.setRewriteMethod(wildcardQuery, parseContext.parseFieldMatcher(), rewriteMethod);
wildcardQuery.setRewriteMethod(QueryParsers.parseRewriteMethod(parseContext.parseFieldMatcher(), rewriteMethod));
wildcardQuery.setBoost(boost);
if (queryName != null) {
parseContext.addNamedQuery(queryName, wildcardQuery);