| java.lang.Object org.apache.lucene.search.Scorer org.apache.lucene.search.TermScorer
TermScorer | final class TermScorer extends Scorer (Code) | | Expert: A Scorer for documents matching a Term .
|
Method Summary | |
public int | doc() Returns the current document number matching the query. | public Explanation | explain(int doc) Returns an explanation of the score for a document. | public boolean | next() Advances to the next document matching the query. | public void | score(HitCollector hc) | protected boolean | score(HitCollector c, int end) | public float | score() | public boolean | skipTo(int target) Skips to the first match beyond the current whose document number is
greater than or equal to a given target. | public String | toString() Returns a string representation of this TermScorer . |
TermScorer | TermScorer(Weight weight, TermDocs td, Similarity similarity, byte[] norms)(Code) | | Construct a TermScorer .
Parameters: weight - The weight of the Term in the query. Parameters: td - An iterator over the documents matching the Term . Parameters: similarity - The Similarity implementation to be used for score computations. Parameters: norms - The field norms of the document fields for the Term . |
doc | public int doc()(Code) | | Returns the current document number matching the query.
Initially invalid, until
TermScorer.next() is called the first time.
|
next | public boolean next() throws IOException(Code) | | Advances to the next document matching the query.
The iterator over the matching documents is buffered using
TermDocs.read(int[]int[]) .
true iff there is another document matching the query. |
score | public float score()(Code) | | |
skipTo | public boolean skipTo(int target) throws IOException(Code) | | Skips to the first match beyond the current whose document number is
greater than or equal to a given target.
The implementation uses
TermDocs.skipTo(int) .
Parameters: target - The target document number. true iff there is such a match. |
toString | public String toString()(Code) | | Returns a string representation of this TermScorer .
|
|
|