Lucene.Net.Search.DisjunctionSumScorer.Score C# (CSharp) Method

Score() public method

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
return bool
	    public /*protected internal*/ override bool Score(Collector collector, int max, int firstDocID)
		{
			// firstDocID is ignored since nextDoc() sets 'currentDoc'
			collector.SetScorer(this);
			while (currentDoc < max)
			{
				collector.Collect(currentDoc);
				if (NextDoc() == NO_MORE_DOCS)
				{
					return false;
				}
			}
			return true;
		}
		

Same methods

DisjunctionSumScorer::Score ( ) : float
DisjunctionSumScorer::Score ( Collector collector ) : void