LUCENE-944: Remove deprecated methods setUseScorer14() and getUseScorer14() from BooleanQuery.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@555717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Busch 2007-07-12 18:41:40 +00:00
parent 7c612dcb2d
commit 5b944011ff
2 changed files with 11 additions and 22 deletions

View File

@ -14,6 +14,9 @@ API Changes
that allow one to set a char[] plus offset and length to specify a that allow one to set a char[] plus offset and length to specify a
token (to avoid creating a new String() for each Token). (Mike token (to avoid creating a new String() for each Token). (Mike
McCandless) McCandless)
2. LUCENE-944: Remove deprecated methods setUseScorer14() and
getUseScorer14() from BooleanQuery. (Paul Elschot via Michael Busch)
Bug fixes Bug fixes

View File

@ -119,7 +119,7 @@ public class BooleanQuery extends Query {
* <p> * <p>
* By default no optional clauses are neccessary for a match * By default no optional clauses are neccessary for a match
* (unless there are no required clauses). If this method is used, * (unless there are no required clauses). If this method is used,
* then the specified numebr of clauses is required. * then the specified number of clauses is required.
* </p> * </p>
* <p> * <p>
* Use of this method is totally independant of specifying that * Use of this method is totally independant of specifying that
@ -127,12 +127,12 @@ public class BooleanQuery extends Query {
* only be compared against the number of matching optional clauses. * only be compared against the number of matching optional clauses.
* </p> * </p>
* <p> * <p>
* EXPERT NOTE: Using this method will force the use of BooleanWeight2, * EXPERT NOTE: Using this method may force collecting docs in order,
* regardless of wether setUseScorer14(true) has been called. * regardless of wether setAllowDocsOutOfOrder(true) has been called.
* </p> * </p>
* *
* @param min the number of optional clauses that must match * @param min the number of optional clauses that must match
* @see #setUseScorer14 * @see #setAllowDocsOutOfOrder
*/ */
public void setMinimumNumberShouldMatch(int min) { public void setMinimumNumberShouldMatch(int min) {
this.minNrShouldMatch = min; this.minNrShouldMatch = min;
@ -318,10 +318,10 @@ public class BooleanQuery extends Query {
* {@link HitCollector#collect(int,float)} might be * {@link HitCollector#collect(int,float)} might be
* invoked first for docid N and only later for docid N-1. * invoked first for docid N and only later for docid N-1.
* Being static, this setting is system wide. * Being static, this setting is system wide.
* If docs out of order are allowed scoring might be faster * If collecting docs out of order is allowed, scoring might be faster
* for certain queries (disjunction queries with less than * for certain queries, for example disjunction queries with
* 32 prohibited terms). This setting has no effect for * less than 32 prohibited clauses.
* other queries. * This setting has no effect for other queries.
*/ */
public static void setAllowDocsOutOfOrder(boolean allow) { public static void setAllowDocsOutOfOrder(boolean allow) {
allowDocsOutOfOrder = allow; allowDocsOutOfOrder = allow;
@ -335,20 +335,6 @@ public class BooleanQuery extends Query {
return allowDocsOutOfOrder; return allowDocsOutOfOrder;
} }
/**
* @deprecated Use {@link #setAllowDocsOutOfOrder(boolean)} instead.
*/
public static void setUseScorer14(boolean use14) {
setAllowDocsOutOfOrder(use14);
}
/**
* @deprecated Use {@link #getAllowDocsOutOfOrder()} instead.
*/
public static boolean getUseScorer14() {
return getAllowDocsOutOfOrder();
}
protected Weight createWeight(Searcher searcher) throws IOException { protected Weight createWeight(Searcher searcher) throws IOException {
return new BooleanWeight(searcher); return new BooleanWeight(searcher);
} }