C# 클래스 Lucene.Net.Search.DisjunctionSumScorer

A Scorer for OR like queries, counterpart of ConjunctionScorer. This Scorer implements DocIdSetIterator.SkipTo(int) and uses skipTo() on the given Scorers.
상속: Lucene.Net.Search.Scorer
파일 보기 프로젝트 열기: synhershko/lucene.net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
nrMatchers int
subScorers System.Collections.Generic.IList

공개 메소드들

메소드 설명
Advance ( int target ) : int

Advances to the first match beyond the current whose document number is greater than or equal to a given target.
The implementation uses the skipTo() method on the subscorers.

DisjunctionSumScorer ( System subScorers ) : System

Construct a DisjunctionScorer, using one as the minimum number of matching subscorers.

DisjunctionSumScorer ( System subScorers, int minimumNrMatchers ) : System

Construct a DisjunctionScorer.

DocID ( ) : int
NextDoc ( ) : int
NrMatchers ( ) : int

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

Score ( Collector collector, int max, int firstDocID ) : bool

Expert: Collects matching documents in a range. Hook for optimization. Note that Next() must be called once before this method is called for the first time.

Score ( ) : float

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

Score ( Collector collector ) : void

Scores and collects all matching documents.

보호된 메소드들

메소드 설명
AdvanceAfterCurrent ( ) : bool

Advance all subscorers after the current document determined by the top of the scorerDocQueue. Repeat until at least the minimum number of subscorers match on the same document and all subscorers are after that document or are exhausted.
On entry the scorerDocQueue has at least minimumNrMatchers available. At least the scorer with the minimum document number will be advanced.

비공개 메소드들

메소드 설명
InitScorerDocQueue ( ) : void

Called the first time next() or skipTo() is called to initialize scorerDocQueue.

메소드 상세

Advance() 공개 메소드

Advances to the first match beyond the current whose document number is greater than or equal to a given target.
The implementation uses the skipTo() method on the subscorers.
public Advance ( int target ) : int
target int The target document number. ///
리턴 int

AdvanceAfterCurrent() 보호된 메소드

Advance all subscorers after the current document determined by the top of the scorerDocQueue. Repeat until at least the minimum number of subscorers match on the same document and all subscorers are after that document or are exhausted.
On entry the scorerDocQueue has at least minimumNrMatchers available. At least the scorer with the minimum document number will be advanced.
protected AdvanceAfterCurrent ( ) : bool
리턴 bool

DisjunctionSumScorer() 공개 메소드

Construct a DisjunctionScorer, using one as the minimum number of matching subscorers.
public DisjunctionSumScorer ( System subScorers ) : System
subScorers System
리턴 System

DisjunctionSumScorer() 공개 메소드

Construct a DisjunctionScorer.
public DisjunctionSumScorer ( System subScorers, int minimumNrMatchers ) : System
subScorers System A collection of at least two subscorers. ///
minimumNrMatchers int The positive minimum number of subscorers that should /// match to match this query. ///
When minimumNrMatchers is bigger than /// the number of subScorers, /// no matches will be produced. ///
When minimumNrMatchers equals the number of subScorers, /// it more efficient to use ConjunctionScorer. ///
리턴 System

DocID() 공개 메소드

public DocID ( ) : int
리턴 int

NextDoc() 공개 메소드

public NextDoc ( ) : int
리턴 int

NrMatchers() 공개 메소드

Returns the number of subscorers matching the current document. Initially invalid, until Next() is called the first time.
public NrMatchers ( ) : int
리턴 int

Score() 공개 메소드

Expert: Collects matching documents in a range. Hook for optimization. Note that Next() must be called once before this method is called for the first time.
public Score ( Collector collector, int max, int firstDocID ) : bool
collector Collector The collector to which all matching documents are passed through. ///
max int Do not score documents past this. ///
firstDocID int
리턴 bool

Score() 공개 메소드

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

Score() 공개 메소드

Scores and collects all matching documents.
public Score ( Collector collector ) : void
collector Collector The collector to which all matching documents are passed through. ///
When this method is used the method should not be used. ///
리턴 void

프로퍼티 상세

nrMatchers 보호되어 있는 프로퍼티

The number of subscorers that provide the current match.
protected int nrMatchers
리턴 int

subScorers 보호되어 있는 프로퍼티

The subscorers.
protected System.Collections.Generic.IList subScorers
리턴 System.Collections.Generic.IList