internal TermScorer(Weight weight, TermDocs td, Similarity similarity, byte[] norms) : base(similarity) { this.weight = weight; this.termDocs = td; this.norms = norms; this.weightValue = weight.Value; for (int i = 0; i < SCORE_CACHE_SIZE; i++) scoreCache[i] = GetSimilarity().Tf(i) * weightValue; }
internal TermScorer(Weight weight, TermDocs td, Similarity similarity, byte[] norms) : base(similarity) { this.weight = weight; this.termDocs = td; this.norms = norms; this.weightValue = weight.Value; for (int i = 0; i < SCORE_CACHE_SIZE; i++) { scoreCache[i] = GetSimilarity().Tf(i) * weightValue; } }