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

DisjunctionSumScorer() public method

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. ///
return System
		public DisjunctionSumScorer(System.Collections.Generic.IList<Scorer> subScorers, int minimumNrMatchers):base(null)
		{
			
			nrScorers = subScorers.Count;
			
			if (minimumNrMatchers <= 0)
			{
				throw new System.ArgumentException("Minimum nr of matchers must be positive");
			}
			if (nrScorers <= 1)
			{
				throw new System.ArgumentException("There must be at least 2 subScorers");
			}
			
			this.minimumNrMatchers = minimumNrMatchers;
			this.subScorers = subScorers;
			
			InitScorerDocQueue();
		}
		

Same methods

DisjunctionSumScorer::DisjunctionSumScorer ( System subScorers ) : System