public abstract class IndriDisjunctionScorer extends IndriScorer
Scorable.ChildScorable| Modifier | Constructor and Description |
|---|---|
protected |
IndriDisjunctionScorer(Weight weight,
List<Scorer> subScorersList,
ScoreMode scoreMode,
float boost) |
| Modifier and Type | Method and Description |
|---|---|
int |
docID()
Returns the doc ID that is currently being scored.
|
float |
getMaxScore(int upTo)
Return the maximum score that documents between the last
target
that this iterator was shallow-advanced to
included and upTo included. |
List<Scorer> |
getSubMatches() |
DocIdSetIterator |
iterator()
Return a
DocIdSetIterator over matching documents. |
float |
score()
Returns the score of the current document matching the query.
|
float |
smoothingScore(int docId)
Returns the smoothing score of the current document matching the query.
|
abstract float |
smoothingScore(List<Scorer> subScorers,
int docId) |
getBoostadvanceShallow, getWeight, twoPhaseIteratorgetChildren, setMinCompetitiveScorepublic DocIdSetIterator iterator()
ScorerDocIdSetIterator over matching documents.
The returned iterator will either be positioned on -1 if no
documents have been scored yet, DocIdSetIterator.NO_MORE_DOCS
if all documents have been scored already, or the last document id that
has been scored otherwise.
The returned iterator is a view: calling this method several times will
return iterators that have the same state.iterator in class IndriScorerpublic float getMaxScore(int upTo)
throws IOException
Scorertarget
that this iterator was shallow-advanced to
included and upTo included.getMaxScore in class IndriScorerIOExceptionpublic List<Scorer> getSubMatches() throws IOException
IOExceptionpublic abstract float smoothingScore(List<Scorer> subScorers, int docId) throws IOException
IOExceptionpublic float score()
throws IOException
Scorablescore in class IndriScorerIOExceptionpublic float smoothingScore(int docId)
throws IOException
ScorableSmoothing scores are described in many papers, including: Metzler, D. and Croft, W. B. , "Combining the Language Model and Inference Network Approaches to Retrieval," Information Processing and Management Special Issue on Bayesian Networks and Information Retrieval, 40(5), pp.735-750.
smoothingScore in class IndriScorerIOExceptionpublic int docID()
ScorabledocID in class IndriScorerCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.