This class is very similar to
{@link Lucene.Net.Search.Spans.SpanTermQuery} except that it factors
in the value of the payload located at each of the positions where the
{@link Lucene.Net.Index.Term} occurs.
In order to take advantage of this, you must override
{@link Lucene.Net.Search.Similarity#ScorePayload(String, byte[],int,int)}
which returns 1 by default.
Payload scores are aggregated using a pluggable {@link PayloadFunction}.
The PayloadTermQuery..::..PayloadTermWeight type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| PayloadTermQuery..::..PayloadTermWeight | Initializes a new instance of the PayloadTermQuery..::..PayloadTermWeight class |
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Explain | (Inherited from SpanWeight.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetQuery | (Inherited from SpanWeight.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetValue | (Inherited from SpanWeight.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Normalize | (Inherited from SpanWeight.) | |
| Scorer | (Overrides SpanWeight..::..Scorer(IndexReader, Boolean, Boolean).) | |
| ScoresDocsOutOfOrder | Returns true iff this implementation scores docs only out of order. This
method is used in conjunction with {@link Collector}'s
{@link Collector#AcceptsDocsOutOfOrder() acceptsDocsOutOfOrder} and
{@link #Scorer(Lucene.Net.Index.IndexReader, boolean, boolean)} to
create a matching {@link Scorer} instance for a given {@link Collector}, or
vice versa.
NOTE: the default implementation returns (Inherited from Weight.)falseScorer | |
| SumOfSquaredWeights | (Inherited from SpanWeight.) | |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| idf | (Inherited from SpanWeight.) | |
| query | (Inherited from SpanWeight.) | |
| queryNorm | (Inherited from SpanWeight.) | |
| queryWeight | (Inherited from SpanWeight.) | |
| similarity | (Inherited from SpanWeight.) | |
| terms | (Inherited from SpanWeight.) | |
| value_Renamed | (Inherited from SpanWeight.) |
Properties
| Name | Description | |
|---|---|---|
| Enclosing_Instance |