示例#1
0
 public BooleanWeight(BooleanQuery enclosingInstance, Searcher searcher, IState state)
 {
     InitBlock(enclosingInstance);
     this.similarity = Enclosing_Instance.GetSimilarity(searcher);
     weights         = new System.Collections.Generic.List <Weight>(Enclosing_Instance.clauses.Count);
     for (int i = 0; i < Enclosing_Instance.clauses.Count; i++)
     {
         weights.Add(Enclosing_Instance.clauses[i].Query.CreateWeight(searcher, state));
     }
 }