Esempio n. 1
0
			public TermWeight(TermQuery enclosingInstance, Searcher searcher)
			{
				InitBlock(enclosingInstance);
				this.similarity = Enclosing_Instance.GetSimilarity(searcher);
				idfExp = similarity.IdfExplain(Enclosing_Instance.term, searcher);
				idf = idfExp.GetIdf();
			}
Esempio n. 2
0
 public TermWeight(TermQuery enclosingInstance, Searcher searcher)
 {
     InitBlock(enclosingInstance);
     this.similarity = Enclosing_Instance.GetSimilarity(searcher);
     idfExp          = similarity.IdfExplain(Enclosing_Instance.term, searcher);
     idf             = idfExp.GetIdf();
 }
Esempio n. 3
0
            public PhraseWeight(PhraseQuery enclosingInstance, Searcher searcher)
            {
                InitBlock(enclosingInstance);
                this.similarity = Enclosing_Instance.GetSimilarity(searcher);

                idfExp = similarity.idfExplain(Enclosing_Instance.terms.ToArray(), searcher);
                idf    = idfExp.GetIdf();
            }
Esempio n. 4
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();
		}
Esempio n. 5
0
 public SpanWeight(SpanQuery query, Searcher searcher)
 {
     this.similarity = query.GetSimilarity(searcher);
     this.query      = query;
     terms           = new Support.Set <Lucene.Net.Index.Term>();
     query.ExtractTerms(terms);
     idfExp = similarity.idfExplain(terms.ToArray(), searcher);
     idf    = idfExp.GetIdf();
 }
Esempio n. 6
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();
 }
Esempio n. 7
0
		public SpanWeight(SpanQuery query, Searcher searcher)
		{
			this.similarity = query.GetSimilarity(searcher);
			this.query = query;
            terms = new Support.Set<Lucene.Net.Index.Term>();
			query.ExtractTerms(terms);
			idfExp = similarity.idfExplain(terms.ToArray(), searcher);
			idf = idfExp.GetIdf();
		}
Esempio n. 8
0
			public PhraseWeight(PhraseQuery enclosingInstance, Searcher searcher)
			{
				InitBlock(enclosingInstance);
				this.similarity = Enclosing_Instance.GetSimilarity(searcher);
				
				idfExp = similarity.idfExplain(Enclosing_Instance.terms.ToArray(), searcher);
				idf = idfExp.GetIdf();
			}