Remove unused QueryParsers#setRewriteMethod

This commit is contained in:
javanna 2017-01-03 13:42:48 +01:00 committed by Luca Cavanna
parent 648ed46f01
commit 40540b3f3f
1 changed files with 0 additions and 7 deletions

View File

@ -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);
}