lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r806892 - /lucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java
Date Sat, 22 Aug 2009 21:05:32 GMT
Author: markrmiller
Date: Sat Aug 22 21:05:31 2009
New Revision: 806892

URL: http://svn.apache.org/viewvc?rev=806892&view=rev
Log:
LUCENE-1839: change explain from abstract to throw UnsupportedOperationException

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

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java?rev=806892&r1=806891&r2=806892&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/Scorer.java Sat Aug 22 21:05:31 2009
@@ -23,9 +23,8 @@
  * Expert: Common scoring functionality for different types of queries.
  *
  * <p>
- * A <code>Scorer</code> either iterates over documents matching a
- * query in increasing order of doc Id, or provides an explanation of
- * the score for a query for a given document.
+ * A <code>Scorer</code> iterates over documents matching a
+ * query in increasing order of doc Id.
  * </p>
  * <p>
  * Document scores are computed using a given <code>Similarity</code>
@@ -129,6 +128,8 @@
    * @deprecated Please use {@link IndexSearcher#explain}
    * or {@link Weight#explain} instead.
    */
-  public abstract Explanation explain(int doc) throws IOException;
+  public Explanation explain(int doc) throws IOException {
+    throw new UnsupportedOperationException();
+  }
 
 }



Mime
View raw message