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
Afficher le fichier Open project: synhershko/lucene.net Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Advance ( int target ) : int
target int
Résultat int

DisjunctionMaxScorer() public méthode

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. ///
Résultat System

DocID() public méthode

public DocID ( ) : int
Résultat int

NextDoc() public méthode

public NextDoc ( ) : int
Résultat int

Score() public méthode

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