示例#1
0
        public SpanWeight(SpanQuery query, Searcher searcher)
        {
            this.similarity = query.GetSimilarity(searcher);
            this.query      = query;
            this.terms      = query.GetTerms();

            idf = this.query.GetSimilarity(searcher).Idf(terms, searcher);
        }
示例#2
0
		public SpanWeight(SpanQuery query, Searcher searcher)
		{
			this.similarity = query.GetSimilarity(searcher);
			this.query = query;
			this.terms = query.GetTerms();
			
			idf = this.query.GetSimilarity(searcher).Idf(terms, searcher);
		}
示例#3
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();
		}
示例#4
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();
 }
示例#5
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();
 }
示例#6
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();
		}
        public SpanWeight(SpanQuery query, Searcher searcher)
        {
            this.similarity = query.GetSimilarity(searcher);
            this.query = query;
            terms = new System.Collections.Hashtable();
            query.ExtractTerms(terms);

            System.Collections.ArrayList tmp = new System.Collections.ArrayList(terms.Values);

            idf = this.query.GetSimilarity(searcher).Idf(tmp, searcher);
        }
示例#8
0
        public SpanWeight(SpanQuery query, Searcher searcher)
        {
            this.similarity    = query.GetSimilarity(searcher);
            this.internalQuery = query;

            terms = Lucene.Net.Support.Compatibility.SetFactory.GetSet <Term>();
            query.ExtractTerms(terms);

            idfExp = similarity.IdfExplain(terms, searcher);
            idf    = idfExp.Idf;
        }
示例#9
0
        public SpanWeight(SpanQuery query, Searcher searcher)
        {
            this.similarity = query.GetSimilarity(searcher);
            this.internalQuery = query;

            terms = Lucene.Net.Support.Compatibility.SetFactory.CreateHashSet<Term>();
            query.ExtractTerms(terms);

            idfExp = similarity.IdfExplain(terms, searcher);
            idf = idfExp.Idf;
        }
示例#10
0
        public SpanWeight(SpanQuery query, Searcher searcher)
        {
            this.similarity = query.GetSimilarity(searcher);
            this.query      = query;
            terms           = new System.Collections.Hashtable();
            query.ExtractTerms(terms);

            System.Collections.ArrayList tmp = new System.Collections.ArrayList(terms.Values);

            idf = this.query.GetSimilarity(searcher).Idf(tmp, searcher);
        }
 public override Similarity GetSimilarity(Searcher searcher)
 {
     return maskedQuery.GetSimilarity(searcher);
 }