C# Класс 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.
Наследование: Lucene.Net.Search.Scorer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
HeapAdjust ( int root ) : void
HeapRemoveRoot ( ) : void
Heapify ( ) : void
ScoreAll ( int root, int size, int doc, float sum, float max ) : void

Описание методов

Advance() публичный Метод

public Advance ( int target ) : int
target int
Результат int

DisjunctionMaxScorer() публичный Метод

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. ///
Результат System

DocID() публичный Метод

public DocID ( ) : int
Результат int

NextDoc() публичный Метод

public NextDoc ( ) : int
Результат int

Score() публичный Метод

Determine the current document score. Initially invalid, until Next() is called the first time.
public Score ( ) : float
Результат float