internal SingleMatchScorer(BooleanScorer2 enclosingInstance, Scorer scorer)
     : base(scorer.GetSimilarity())
 {
     InitBlock(enclosingInstance);
     this.scorer = scorer;
 }
Пример #2
0
 internal SingleMatchScorer(BooleanScorer2 enclosingInstance, Scorer scorer) : base(scorer.GetSimilarity())
 {
     InitBlock(enclosingInstance);
     this.scorer = scorer;
 }
 public override Similarity GetSimilarity()
 {
     return(scorer.GetSimilarity());
 }
 /// <summary>Creates a new instance by wrapping the given scorer. </summary>
 public ScoreCachingWrappingScorer(Scorer scorer)
     : base(scorer.GetSimilarity())
 {
     this.scorer = scorer;
 }
 /// <summary>Creates a new instance by wrapping the given scorer. </summary>
 public ScoreCachingWrappingScorer(Scorer scorer) : base(scorer.GetSimilarity())
 {
     this.scorer = scorer;
 }