Exemplo n.º 1
0
 public SpanWeight(SpanQuery query, Searcher searcher)
 {
     this.similarity = query.GetSimilarity(searcher);
     this.query      = query;
     terms           = new System.Collections.Hashtable();
     query.ExtractTerms(terms);
     idfExp = similarity.idfExplain(new System.Collections.ArrayList(terms.Values), searcher);
     idf    = idfExp.GetIdf();
 }
Exemplo n.º 2
0
		public SpanWeight(SpanQuery query, Searcher searcher)
		{
			this.similarity = query.GetSimilarity(searcher);
			this.query = query;
			terms = new System.Collections.Hashtable();
			query.ExtractTerms(terms);
			idfExp = similarity.idfExplain(new System.Collections.ArrayList(terms.Values), searcher);
			idf = idfExp.GetIdf();
		}
Exemplo n.º 3
0
 public override void  ExtractTerms(System.Collections.Hashtable terms)
 {
     System.Collections.IEnumerator i = clauses.GetEnumerator();
     while (i.MoveNext())
     {
         SpanQuery clause = (SpanQuery)i.Current;
         clause.ExtractTerms(terms);
     }
 }
Exemplo n.º 4
0
 public override void  ExtractTerms(System.Collections.Hashtable terms)
 {
     match.ExtractTerms(terms);
 }