C# Class Lucene.Net.Search.DisjunctionMaxScorer

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.
Inheritance: Lucene.Net.Search.Scorer
Datei anzeigen Open project: synhershko/lucene.net Class Usage Examples

Public Methods

Method Description
Advance ( int target ) : int
DisjunctionMaxScorer ( float tieBreakerMultiplier, Similarity similarity, Lucene.Net.Search.Scorer subScorers, int numScorers ) : System

Creates a new instance of DisjunctionMaxScorer

DocID ( ) : int
NextDoc ( ) : int
Score ( ) : float

Determine the current document score. Initially invalid, until Next() is called the first time.

Private Methods

Method Description
HeapAdjust ( int root ) : void
HeapRemoveRoot ( ) : void
Heapify ( ) : void
ScoreAll ( int root, int size, int doc, float sum, float max ) : void

Method Details

Advance() public method

public Advance ( int target ) : int
target int
return int

DisjunctionMaxScorer() public method

Creates a new instance of DisjunctionMaxScorer
public DisjunctionMaxScorer ( float tieBreakerMultiplier, Similarity similarity, Lucene.Net.Search.Scorer subScorers, int numScorers ) : System
tieBreakerMultiplier float Multiplier applied to non-maximum-scoring subqueries for a /// document as they are summed into the result. ///
similarity Similarity -- not used since our definition involves neither coord nor terms /// directly ///
subScorers Lucene.Net.Search.Scorer The sub scorers this Scorer should iterate on ///
numScorers int The actual number of scorers to iterate on. Note that the array's /// length may be larger than the actual number of scorers. ///
return System

DocID() public method

public DocID ( ) : int
return int

NextDoc() public method

public NextDoc ( ) : int
return int

Score() public method

Determine the current document score. Initially invalid, until Next() is called the first time.
public Score ( ) : float
return float