Class PayloadTermQuery
This class is very similar to SpanTermQuery except that it factors in the value of the payload located at each of the positions where the Term occurs.
NOTE: In order to take advantage of this with the default scoring implementation (DefaultSimilarity), you must override ScorePayload(Int32, Int32, Int32, BytesRef), which returns 1 by default.
Payload scores are aggregated using a pluggable PayloadFunction.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public class PayloadTermQuery : SpanTermQuery
Constructors
Name | Description |
---|---|
PayloadTermQuery(Term, PayloadFunction) | |
PayloadTermQuery(Term, PayloadFunction, Boolean) |
Fields
Name | Description |
---|---|
m_function |
Methods
Name | Description |
---|---|
CreateWeight(IndexSearcher) | |
Equals(Object) | |
GetHashCode() |