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); } }
public ConjunctionScorerAnonymousInnerClassHelper(BooleanScorer2 outerInstance, Weight weight, Scorer[] scorers, int requiredNrMatchers) : base(weight, scorers) { this.outerInstance = outerInstance; this.requiredNrMatchers = requiredNrMatchers; lastScoredDoc = -1; lastDocScore = float.NaN; }
internal Coordinator(BooleanScorer2 outerInstance, int maxCoord, bool disableCoord) { this.OuterInstance = outerInstance; 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.weight).Coord(i, maxCoord); } }
/// <returns> An alternative Scorer that uses and provides skipTo(), /// and scores documents in document number order. /// </returns> public override Scorer Scorer(IndexReader reader) { BooleanScorer2 result = new BooleanScorer2(similarity, Enclosing_Instance.minNrShouldMatch); for (int i = 0; i < weights.Count; i++) { BooleanClause c = (BooleanClause)Enclosing_Instance.clauses[i]; Weight w = (Weight)weights[i]; Scorer subScorer = w.Scorer(reader); if (subScorer != null) { result.Add(subScorer, c.IsRequired(), c.IsProhibited()); } else if (c.IsRequired()) { return(null); } } return(result); }
/// <returns> Returns BooleanScorer2 that uses and provides skipTo(), /// and scores documents in document number order. /// </returns> public virtual Scorer Scorer(IndexReader reader) { BooleanScorer2 result = new BooleanScorer2(similarity, Enclosing_Instance.minNrShouldMatch, Lucene.Net.Search.BooleanQuery.allowDocsOutOfOrder); for (int i = 0; i < weights.Count; i++) { BooleanClause c = (BooleanClause)Enclosing_Instance.clauses[i]; Weight w = (Weight)weights[i]; Scorer subScorer = w.Scorer(reader); if (subScorer != null) { result.Add(subScorer, c.IsRequired(), c.IsProhibited()); } else if (c.IsRequired()) { return(null); } } return(result); }
private void InitBlock(BooleanScorer2 enclosingInstance) { this.enclosingInstance = enclosingInstance; }
internal SingleMatchScorer(BooleanScorer2 enclosingInstance, Scorer scorer) : base(scorer.GetSimilarity()) { InitBlock(enclosingInstance); this.scorer = scorer; }
internal AnonymousClassDisjunctionSumScorer(BooleanScorer2 enclosingInstance, System.Collections.Generic.IList <Scorer> scorers, int minNrShouldMatch, IState state) : base(scorers, minNrShouldMatch, state) { InitBlock(enclosingInstance); }
public Coordinator(BooleanScorer2 enclosingInstance) { InitBlock(enclosingInstance); }
private void InitBlock(int requiredNrMatchers, BooleanScorer2 enclosingInstance) { this.requiredNrMatchers = requiredNrMatchers; this.enclosingInstance = enclosingInstance; }
internal AnonymousClassConjunctionScorer(int requiredNrMatchers, BooleanScorer2 enclosingInstance, Lucene.Net.Search.Similarity defaultSimilarity, System.Collections.Generic.IList<Scorer> requiredScorers) : base(defaultSimilarity, requiredScorers) { InitBlock(requiredNrMatchers, enclosingInstance); }
internal AnonymousClassConjunctionScorer(int requiredNrMatchers, BooleanScorer2 enclosingInstance, Lucene.Net.Search.Similarity Param1) : base(Param1) { InitBlock(requiredNrMatchers, enclosingInstance); }
internal SingleMatchScorer(BooleanScorer2 outerInstance, Scorer scorer) : base(scorer.m_weight) { this.outerInstance = outerInstance; this.scorer = scorer; }
/// <returns> An alternative Scorer that uses and provides skipTo(), /// and scores documents in document number order. /// </returns> public override Scorer Scorer(IndexReader reader) { BooleanScorer2 result = new BooleanScorer2(similarity, Enclosing_Instance.minNrShouldMatch); for (int i = 0; i < weights.Count; i++) { BooleanClause c = (BooleanClause) Enclosing_Instance.clauses[i]; Weight w = (Weight) weights[i]; Scorer subScorer = w.Scorer(reader); if (subScorer != null) result.Add(subScorer, c.IsRequired(), c.IsProhibited()); else if (c.IsRequired()) return null; } return result; }
public DisjunctionSumScorerAnonymousInnerClassHelper(BooleanScorer2 outerInstance, Weight weight, Scorer[] subScorers, float[] coord) : base(weight, subScorers, coord) { this.OuterInstance = outerInstance; }
public MinShouldMatchSumScorerAnonymousClass(BooleanScorer2 outerInstance, Weight weight, IList <Scorer> scorers, int minNrShouldMatch) : base(weight, scorers, minNrShouldMatch) { this.outerInstance = outerInstance; }
internal AnonymousClassConjunctionScorer(int requiredNrMatchers, BooleanScorer2 enclosingInstance, Lucene.Net.Search.Similarity defaultSimilarity, IState state, System.Collections.Generic.IList <Scorer> requiredScorers) : base(defaultSimilarity, state, requiredScorers) { InitBlock(requiredNrMatchers, enclosingInstance); }
internal AnonymousClassDisjunctionSumScorer(BooleanScorer2 enclosingInstance, System.Collections.IList Param1, int Param2) : base(Param1, Param2) { InitBlock(enclosingInstance); }
public MinShouldMatchSumScorerAnonymousInnerClassHelper(BooleanScorer2 outerInstance, Lucene.Net.Search.Weight weight, IList <Scorer> scorers, int minNrShouldMatch) : base(weight, scorers, minNrShouldMatch) { this.outerInstance = outerInstance; }
private void InitBlock(int requiredNrMatchers, BooleanScorer2 enclosingInstance) { this.requiredNrMatchers = requiredNrMatchers; this.enclosingInstance = enclosingInstance; }
public DisjunctionSumScorerAnonymousInnerClassHelper(BooleanScorer2 outerInstance, Weight weight, Scorer[] subScorers, float[] coord) : base(weight, subScorers, coord) { this.outerInstance = outerInstance; }
internal AnonymousClassDisjunctionSumScorer(BooleanScorer2 enclosingInstance, System.Collections.Generic.IList<Scorer> scorers, int minNrShouldMatch) : base(scorers, minNrShouldMatch) { InitBlock(enclosingInstance); }
private void InitBlock(BooleanScorer2 enclosingInstance) { this.enclosingInstance = enclosingInstance; }
internal AnonymousClassConjunctionScorer(int requiredNrMatchers, BooleanScorer2 enclosingInstance, Lucene.Net.Search.Similarity Param1) : base(Param1) { InitBlock(requiredNrMatchers, enclosingInstance); }
public MinShouldMatchSumScorerAnonymousInnerClassHelper(BooleanScorer2 outerInstance, Lucene.Net.Search.Weight weight, IList<Scorer> scorers, int minNrShouldMatch) : base(weight, scorers, minNrShouldMatch) { this.OuterInstance = outerInstance; }
internal AnonymousClassDisjunctionSumScorer(BooleanScorer2 enclosingInstance, System.Collections.IList Param1, int Param2) : base(Param1, Param2) { InitBlock(enclosingInstance); }
public Coordinator(BooleanScorer2 enclosingInstance) { InitBlock(enclosingInstance); }
internal SingleMatchScorer(BooleanScorer2 enclosingInstance, Scorer scorer) : base(scorer.GetSimilarity()) { InitBlock(enclosingInstance); this.scorer = scorer; }
public ConjunctionScorerAnonymousInnerClassHelper(BooleanScorer2 outerInstance, Weight weight, Scorer[] scorers, int requiredNrMatchers) : base(weight, scorers) { this.OuterInstance = outerInstance; this.RequiredNrMatchers = requiredNrMatchers; lastScoredDoc = -1; lastDocScore = float.NaN; }
/// <returns> Returns BooleanScorer2 that uses and provides skipTo(), /// and scores documents in document number order. /// </returns> public virtual Scorer Scorer(IndexReader reader) { BooleanScorer2 result = new BooleanScorer2(similarity, Enclosing_Instance.minNrShouldMatch, Lucene.Net.Search.BooleanQuery.allowDocsOutOfOrder); for (int i = 0; i < weights.Count; i++) { BooleanClause c = (BooleanClause) Enclosing_Instance.clauses[i]; Weight w = (Weight) weights[i]; Scorer subScorer = w.Scorer(reader); if (subScorer != null) result.Add(subScorer, c.IsRequired(), c.IsProhibited()); else if (c.IsRequired()) return null; } return result; }
internal SingleMatchScorer(BooleanScorer2 outerInstance, Scorer scorer) : base(scorer.weight) { this.OuterInstance = outerInstance; this.Scorer = scorer; }