Constructor QueryScorer
QueryScorer(Query)
Constructs a new QueryScorer instance
Declaration
public QueryScorer(Query query)
Parameters
Type | Name | Description |
---|---|---|
Query | query |
QueryScorer(Query, String)
Constructs a new QueryScorer instance
Declaration
public QueryScorer(Query query, string field)
Parameters
Type | Name | Description |
---|---|---|
Query | query | |
System.String | field | Field to highlight - pass null to ignore fields |
QueryScorer(Query, IndexReader, String)
Constructs a new QueryScorer instance
Declaration
public QueryScorer(Query query, IndexReader reader, string field)
Parameters
Type | Name | Description |
---|---|---|
Query | query | |
IndexReader | reader | |
System.String | field | Field to highlight - pass null to ignore fields |
QueryScorer(Query, IndexReader, String, String)
Constructs a new QueryScorer instance
Declaration
public QueryScorer(Query query, IndexReader reader, string field, string defaultField)
Parameters
Type | Name | Description |
---|---|---|
Query | query | |
IndexReader | reader | |
System.String | field | Field to highlight - pass null to ignore fields |
System.String | defaultField | The default field for queries with the field name unspecified |
QueryScorer(Query, String, String)
Constructs a new QueryScorer instance
Declaration
public QueryScorer(Query query, string field, string defaultField)
Parameters
Type | Name | Description |
---|---|---|
Query | query | |
System.String | field | Field to highlight - pass null to ignore fields |
System.String | defaultField | The default field for queries with the field name unspecified |
QueryScorer(WeightedSpanTerm[])
Constructs a new QueryScorer instance
Declaration
public QueryScorer(WeightedSpanTerm[] weightedTerms)
Parameters
Type | Name | Description |
---|---|---|
WeightedSpanTerm[] | weightedTerms | an array of pre-created WeightedSpanTerms |