mirror of https://github.com/apache/lucene.git
LUCENE-1839: change explain from abstract to throw UnsupportedOperationException
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@806892 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8e4e7e17d0
commit
bd565a3917
|
@ -23,9 +23,8 @@ import java.io.IOException;
|
|||
* 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 @@ public abstract class Scorer extends DocIdSetIterator {
|
|||
* @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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue