Constructor QueryTermScorer
QueryTermScorer(Query)
Declaration
public QueryTermScorer(Query query)
Parameters
Type | Name | Description |
---|---|---|
Query | query | a Lucene query (ideally rewritten using |
QueryTermScorer(Query, String)
Declaration
public QueryTermScorer(Query query, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
Query | query | a Lucene query (ideally rewritten using |
System.String | fieldName | the Field name which is used to match Query terms |
QueryTermScorer(Query, IndexReader, String)
Declaration
public QueryTermScorer(Query query, IndexReader reader, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
Query | query | a Lucene query (ideally rewritten using |
IndexReader | reader | used to compute IDF which can be used to a) score selected fragments better b) use graded highlights eg set font color intensity |
System.String | fieldName | the field on which Inverse Document Frequency (IDF) calculations are based |
QueryTermScorer(WeightedTerm[])
Declaration
public QueryTermScorer(WeightedTerm[] weightedTerms)
Parameters
Type | Name | Description |
---|---|---|
WeightedTerm[] | weightedTerms |