Return-Path: Delivered-To: apmail-lucene-java-commits-archive@www.apache.org Received: (qmail 93488 invoked from network); 12 Jul 2007 18:42:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jul 2007 18:42:02 -0000 Received: (qmail 55143 invoked by uid 500); 12 Jul 2007 18:42:05 -0000 Delivered-To: apmail-lucene-java-commits-archive@lucene.apache.org Received: (qmail 55124 invoked by uid 500); 12 Jul 2007 18:42:05 -0000 Mailing-List: contact java-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-commits@lucene.apache.org Received: (qmail 55112 invoked by uid 99); 12 Jul 2007 18:42:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 11:42:05 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 11:42:01 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id B36081A981A; Thu, 12 Jul 2007 11:41:41 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r555717 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/search/BooleanQuery.java Date: Thu, 12 Jul 2007 18:41:41 -0000 To: java-commits@lucene.apache.org From: buschmi@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070712184141.B36081A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: buschmi Date: Thu Jul 12 11:41:40 2007 New Revision: 555717 URL: http://svn.apache.org/viewvc?view=rev&rev=555717 Log: LUCENE-944: Remove deprecated methods setUseScorer14() and getUseScorer14() from BooleanQuery. Modified: lucene/java/trunk/CHANGES.txt lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java Modified: lucene/java/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?view=diff&rev=555717&r1=555716&r2=555717 ============================================================================== --- lucene/java/trunk/CHANGES.txt (original) +++ lucene/java/trunk/CHANGES.txt Thu Jul 12 11:41:40 2007 @@ -14,6 +14,9 @@ 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 McCandless) + + 2. LUCENE-944: Remove deprecated methods setUseScorer14() and + getUseScorer14() from BooleanQuery. (Paul Elschot via Michael Busch) Bug fixes Modified: lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java?view=diff&rev=555717&r1=555716&r2=555717 ============================================================================== --- lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java (original) +++ lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java Thu Jul 12 11:41:40 2007 @@ -119,7 +119,7 @@ *

* By default no optional clauses are neccessary for a match * (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. *

*

* Use of this method is totally independant of specifying that @@ -127,12 +127,12 @@ * only be compared against the number of matching optional clauses. *

*

- * EXPERT NOTE: Using this method will force the use of BooleanWeight2, - * regardless of wether setUseScorer14(true) has been called. + * EXPERT NOTE: Using this method may force collecting docs in order, + * regardless of wether setAllowDocsOutOfOrder(true) has been called. *

* * @param min the number of optional clauses that must match - * @see #setUseScorer14 + * @see #setAllowDocsOutOfOrder */ public void setMinimumNumberShouldMatch(int min) { this.minNrShouldMatch = min; @@ -318,10 +318,10 @@ * {@link HitCollector#collect(int,float)} might be * invoked first for docid N and only later for docid N-1. * Being static, this setting is system wide. - * If docs out of order are allowed scoring might be faster - * for certain queries (disjunction queries with less than - * 32 prohibited terms). This setting has no effect for - * other queries. + * If collecting docs out of order is allowed, scoring might be faster + * for certain queries, for example disjunction queries with + * less than 32 prohibited clauses. + * This setting has no effect for other queries. */ public static void setAllowDocsOutOfOrder(boolean allow) { allowDocsOutOfOrder = allow; @@ -334,20 +334,6 @@ public static boolean getAllowDocsOutOfOrder() { 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 { return new BooleanWeight(searcher);