lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r178872 - /lucene/java/trunk/src/java/org/apache/lucene/search/BooleanScorer2.java
Date Sat, 28 May 2005 15:57:56 GMT
Author: dnaber
Date: Sat May 28 08:57:54 2005
New Revision: 178872

URL: http://svn.apache.org/viewcvs?rev=178872&view=rev
Log:
not public anymore + javadoc fixes (by Paul Elschot)

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/BooleanScorer2.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/BooleanScorer2.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/search/BooleanScorer2.java?rev=178872&r1=178871&r2=178872&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/BooleanScorer2.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/BooleanScorer2.java Sat May 28 08:57:54
2005
@@ -25,7 +25,7 @@
  * <br>Uses ConjunctionScorer, DisjunctionScorer, ReqOptScorer and ReqExclScorer.
  * <br>Implements skipTo(), and has no limitations on the numbers of added scorers.
  */
-public class BooleanScorer2 extends Scorer {
+class BooleanScorer2 extends Scorer {
   private ArrayList requiredScorers = new ArrayList();
   private ArrayList optionalScorers = new ArrayList();
   private ArrayList prohibitedScorers = new ArrayList();
@@ -292,6 +292,14 @@
     return sum * coordinator.coordFactor();
   }
 
+  /** Skips to the first match beyond the current whose document number is
+   * greater than or equal to a given target.
+   * 
+   * <p>When this method is used the {@link #explain(int)} method should not be used.
+   * 
+   * @param target The target document number.
+   * @return true iff there is such a match.
+   */
   public boolean skipTo(int target) throws IOException {
     if (countingSumScorer == null) {
       initCountingSumScorer();
@@ -299,7 +307,12 @@
     return countingSumScorer.skipTo(target);
   }
 
-  public Explanation explain(int doc) throws IOException {
+  /** Throws an UnsupportedOperationException.
+   * TODO: Implement an explanation of the coordination factor.
+   * @param doc The document number for the explanation.
+   * @throws UnsupportedOperationException
+   */
+  public Explanation explain(int doc) {
     throw new UnsupportedOperationException();
  /* How to explain the coordination factor?
     initCountingSumScorer();



Mime
View raw message