Пример #1
0
 internal Coordinator(BooleanScorer2 outerInstance, int maxCoord, bool disableCoord)
 {
     coordFactors = new float[outerInstance.optionalScorers.Count + outerInstance.requiredScorers.Count + 1];
     for (int i = 0; i < coordFactors.Length; i++)
     {
         coordFactors[i] = disableCoord ? 1.0f : ((BooleanWeight)outerInstance.m_weight).Coord(i, maxCoord);
     }
 }
Пример #2
0
 public ConjunctionScorerAnonymousClass(BooleanScorer2 outerInstance, Weight weight, Scorer[] scorers, int requiredNrMatchers)
     : base(weight, scorers)
 {
     this.outerInstance      = outerInstance;
     this.requiredNrMatchers = requiredNrMatchers;
     lastScoredDoc           = -1;
     lastDocScore            = float.NaN;
 }
Пример #3
0
 public DisjunctionSumScorerAnonymousClass(BooleanScorer2 outerInstance, Weight weight, Scorer[] subScorers, float[] coord)
     : base(weight, subScorers, coord)
 {
     this.outerInstance = outerInstance;
 }
Пример #4
0
 public MinShouldMatchSumScorerAnonymousClass(BooleanScorer2 outerInstance, Weight weight, IList <Scorer> scorers, int minNrShouldMatch)
     : base(weight, scorers, minNrShouldMatch)
 {
     this.outerInstance = outerInstance;
 }
Пример #5
0
 internal SingleMatchScorer(BooleanScorer2 outerInstance, Scorer scorer)
     : base(scorer.m_weight)
 {
     this.outerInstance = outerInstance;
     this.scorer        = scorer;
 }
Пример #6
0
 public MinShouldMatchSumScorerAnonymousInnerClassHelper(BooleanScorer2 outerInstance, Lucene.Net.Search.Weight weight, IList <Scorer> scorers, int minNrShouldMatch)
     : base(weight, scorers, minNrShouldMatch)
 {
     this.outerInstance = outerInstance;
 }