Scorer
Expert: Common scoring functionality for different types of queries.
A Scorer exposes an .iterator over documents matching a query in increasing order of doc id.
Inheritors
Properties
Functions
Advance to the block of documents that contains target in order to get scoring information about this block. This method is implicitly called by and DocIdSetIterator.nextDoc on the returned doc ID. Calling this method doesn't modify the current DocIdSetIterator.docID. It returns a number that is greater than or equal to all documents contained in the current block, but less than any doc IDS of the next block. target must be >= .docID as well as all targets that have been passed to .advanceShallow so far.
Return the maximum score that documents between the last target that this iterator was .advanceShallow to included and upTo included.
Return a DocIdSetIterator over matching documents.
Returns the smoothing score of the current document matching the query. This score is used when the query/term does not appear in the document, and behaves like an idf. The smoothing score is particularly important when the Scorer returns a product of probabilities so that the document score does not go to zero when one probability is zero. This can return 0 or a smoothing score.
Optional method: Return a TwoPhaseIterator view of this Scorer. A return value of null indicates that two-phase iteration is not supported.