public QueryScorer(WeightedSpanTerm[] weightedTerms){this.fieldWeightedSpanTerms = new JCG.Dictionary<string, WeightedSpanTerm>(weightedTerms.Length);foreach (WeightedSpanTerm t in weightedTerms){if (!fieldWeightedSpanTerms.TryGetValue(t.Term, out WeightedSpanTerm existingTerm) ||(existingTerm == null) ||(existingTerm.Weight < t.Weight)){fieldWeightedSpanTerms[t.Term] = t;maxTermWeight = Math.Max(maxTermWeight, t.Weight);}}skipInitExtractor = true;}