mirror of https://github.com/apache/lucene.git
Follow up on GH#12055 to remove un-referenced test methods
This commit is contained in:
parent
c6667e709f
commit
b23b7475e1
|
@ -97,21 +97,6 @@ public class TestMultiTermConstantScore extends TestBaseRangeFilter {
|
|||
small = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* macro for readability
|
||||
*
|
||||
* @deprecated please use {@link #cspq(Term, MultiTermQuery.RewriteMethod)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static Query csrq(String f, String l, String h, boolean il, boolean ih) {
|
||||
TermRangeQuery query =
|
||||
TermRangeQuery.newStringRange(f, l, h, il, ih, MultiTermQuery.CONSTANT_SCORE_REWRITE);
|
||||
if (VERBOSE) {
|
||||
System.out.println("TEST: query=" + query);
|
||||
}
|
||||
return query;
|
||||
}
|
||||
|
||||
/** macro for readability */
|
||||
public static Query csrq(
|
||||
String f, String l, String h, boolean il, boolean ih, MultiTermQuery.RewriteMethod method) {
|
||||
|
@ -122,32 +107,11 @@ public class TestMultiTermConstantScore extends TestBaseRangeFilter {
|
|||
return query;
|
||||
}
|
||||
|
||||
/**
|
||||
* macro for readability
|
||||
*
|
||||
* @deprecated please use {@link #cspq(Term, MultiTermQuery.RewriteMethod)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static Query cspq(Term prefix) {
|
||||
return new PrefixQuery(prefix, MultiTermQuery.CONSTANT_SCORE_REWRITE);
|
||||
}
|
||||
|
||||
/** macro for readability */
|
||||
public static Query cspq(Term prefix, MultiTermQuery.RewriteMethod method) {
|
||||
return new PrefixQuery(prefix, method);
|
||||
}
|
||||
|
||||
/**
|
||||
* macro for readability
|
||||
*
|
||||
* @deprecated please use {@link #cswcq(Term, MultiTermQuery.RewriteMethod)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public static Query cswcq(Term wild) {
|
||||
return new WildcardQuery(
|
||||
wild, Operations.DEFAULT_DETERMINIZE_WORK_LIMIT, MultiTermQuery.CONSTANT_SCORE_REWRITE);
|
||||
}
|
||||
|
||||
/** macro for readability */
|
||||
public static Query cswcq(Term wild, MultiTermQuery.RewriteMethod method) {
|
||||
return new WildcardQuery(wild, Operations.DEFAULT_DETERMINIZE_WORK_LIMIT, method);
|
||||
|
|
Loading…
Reference in New Issue