Remove unused QueryParsers#setRewriteMethod
This commit is contained in:
parent
648ed46f01
commit
40540b3f3f
|
@ -44,13 +44,6 @@ public final class QueryParsers {
|
|||
query.setRewriteMethod(rewriteMethod);
|
||||
}
|
||||
|
||||
public static void setRewriteMethod(MultiTermQuery query, ParseFieldMatcher matcher, @Nullable String rewriteMethod) {
|
||||
if (rewriteMethod == null) {
|
||||
return;
|
||||
}
|
||||
query.setRewriteMethod(parseRewriteMethod(matcher, rewriteMethod));
|
||||
}
|
||||
|
||||
public static MultiTermQuery.RewriteMethod parseRewriteMethod(ParseFieldMatcher matcher, @Nullable String rewriteMethod) {
|
||||
return parseRewriteMethod(matcher, rewriteMethod, MultiTermQuery.CONSTANT_SCORE_REWRITE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue