private void InitBlock(MultiPhraseQuery enclosingInstance) { this.enclosingInstance = enclosingInstance; }
public MultiPhraseWeight(MultiPhraseQuery enclosingInstance, Searcher searcher) { InitBlock(enclosingInstance); this.similarity = Enclosing_Instance.GetSimilarity(searcher); // compute idf System.Collections.IEnumerator i = Enclosing_Instance.termArrays.GetEnumerator(); while (i.MoveNext()) { Term[] terms = (Term[]) i.Current; for (int j = 0; j < terms.Length; j++) { idf += Enclosing_Instance.GetSimilarity(searcher).Idf(terms[j], searcher); } } }