C# Class Lucene.Net.Search.ReqOptSumScorer

A Scorer for queries with a required part and an optional part. Delays skipTo() on the optional part until a score() is needed.
this Scorer implements Scorer#advance(int).
Inheritance: Lucene.Net.Search.Scorer
Datei anzeigen Open project: synhershko/lucene.net

Public Methods

Method Description
Advance ( int target ) : int
DocID ( ) : int
NextDoc ( ) : int
ReqOptSumScorer ( Lucene.Net.Search.Scorer reqScorer, Lucene.Net.Search.Scorer optScorer ) : System

Construct a ReqOptScorer.

Score ( ) : float

Returns the score of the current document matching the query. Initially invalid, until Next() is called the first time.

Method Details

Advance() public method

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

DocID() public method

public DocID ( ) : int
return int

NextDoc() public method

public NextDoc ( ) : int
return int

ReqOptSumScorer() public method

Construct a ReqOptScorer.
public ReqOptSumScorer ( Lucene.Net.Search.Scorer reqScorer, Lucene.Net.Search.Scorer optScorer ) : System
reqScorer Lucene.Net.Search.Scorer The required scorer. This must match. ///
optScorer Lucene.Net.Search.Scorer The optional scorer. This is used for scoring only. ///
return System

Score() public method

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