Class PayloadNearQuery
This class is very similar to SpanNearQuery except that it factors in the value of the payloads located at each of the positions where the TermSpans 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 PayloadNearQuery : SpanNearQuery
Constructors
Name | Description |
---|---|
PayloadNearQuery(SpanQuery[], Int32, Boolean) | |
PayloadNearQuery(SpanQuery[], Int32, Boolean, PayloadFunction) |
Fields
Name | Description |
---|---|
m_fieldName | |
m_function |
Methods
Name | Description |
---|---|
Clone() | |
CreateWeight(IndexSearcher) | |
Equals(Object) | |
GetHashCode() | |
ToString(String) |