| |
|
| java.lang.Object org.apache.lucene.search.Scorer org.apache.lucene.search.DisjunctionMaxScorer
DisjunctionMaxScorer | class DisjunctionMaxScorer extends Scorer (Code) | | The Scorer for DisjunctionMaxQuery's. The union of all documents generated by the the subquery scorers
is generated in document number order. The score for each document is the maximum of the scores computed
by the subquery scorers that generate that document, plus tieBreakerMultiplier times the sum of the scores
for the other subqueries that generate the document.
author: Chuck Williams |
Method Summary | |
public void | add(Scorer scorer) | public int | doc() Determine the current document number. | public Explanation | explain(int doc) Explain a score that we computed. | public boolean | next() Generate the next document matching our associated DisjunctionMaxQuery. | public float | score() Determine the current document score. | public boolean | skipTo(int target) Advance to the first document beyond the current whose number is greater than or equal to target. |
DisjunctionMaxScorer | public DisjunctionMaxScorer(float tieBreakerMultiplier, Similarity similarity)(Code) | | Creates a new instance of DisjunctionMaxScorer
Parameters: tieBreakerMultiplier - Multiplier applied to non-maximum-scoring subqueries for a document as they are summed into the result. Parameters: similarity - -- not used since our definition involves neither coord nor terms directly |
add | public void add(Scorer scorer) throws IOException(Code) | | Add the scorer for a subquery
Parameters: scorer - the scorer of a subquery of our associated DisjunctionMaxQuery |
doc | public int doc()(Code) | | Determine the current document number. Initially invalid, until
DisjunctionMaxScorer.next() is called the first time.
the document number of the currently generated document |
explain | public Explanation explain(int doc) throws IOException(Code) | | Explain a score that we computed. UNSUPPORTED -- see explanation capability in DisjunctionMaxQuery.
Parameters: doc - the number of a document we scored the Explanation for our score |
next | public boolean next() throws IOException(Code) | | Generate the next document matching our associated DisjunctionMaxQuery.
true iff there is a next document |
skipTo | public boolean skipTo(int target) throws IOException(Code) | | Advance to the first document beyond the current whose number is greater than or equal to target.
Parameters: target - the minimum number of the next desired document true iff there is a document to be generated whose number is at least target |
|
|
|