/// <summary> </summary> /// <param name="query">a Lucene query (ideally rewritten using query.rewrite /// before being passed to this class and the searcher) /// </param> /// <param name="fieldName">the Field name which is used to match Query terms /// </param> public QueryScorer(Query query, System.String fieldName) : this(QueryTermExtractor.GetTerms(query, false, fieldName)) { }
/// <summary> </summary> /// <param name="query">a Lucene query (ideally rewritten using query.rewrite /// before being passed to this class and the searcher) /// </param> /// <param name="reader">used to compute IDF which can be used to a) score selected fragments better /// b) use graded highlights eg set font color intensity /// </param> /// <param name="fieldName">the field on which Inverse Document Frequency (IDF) calculations are based /// </param> public QueryScorer(Query query, IndexReader reader, System.String fieldName) : this(QueryTermExtractor.GetIdfWeightedTerms(query, reader, fieldName)) { }
/// <summary> </summary> /// <param name="query">a Lucene query (ideally rewritten using query.rewrite /// before being passed to this class and the searcher) /// </param> public QueryScorer(Query query) : this(QueryTermExtractor.GetTerms(query)) { }