This class is very similar to
{@link Lucene.Net.Search.Spans.SpanNearQuery} except that it factors
in the value of the payloads located at each of the positions where the
{@link Lucene.Net.Search.Spans.TermSpans} 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 PayloadNearQuery..::..PayloadNearSpanScorer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PayloadNearQuery..::..PayloadNearSpanScorer | Initializes a new instance of the PayloadNearQuery..::..PayloadNearSpanScorer class |
Methods
Name | Description | |
---|---|---|
Advance | (Inherited from SpanScorer.) | |
Doc | Obsolete. (Inherited from SpanScorer.) | |
DocID | (Inherited from SpanScorer.) | |
Equals | (Inherited from Object.) | |
Explain | (Overrides SpanScorer..::..Explain(Int32).) | |
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.) | |
GetPayloads | ||
GetSimilarity | Returns the Similarity implementation used by this scorer. (Inherited from Scorer.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Next | Obsolete. (Inherited from SpanScorer.) | |
NextDoc | (Inherited from SpanScorer.) | |
ProcessPayloads | By default, uses the {@link PayloadFunction} to score the payloads, but
can be overridden to do other things.
| |
Score()()()() | (Overrides SpanScorer..::..Score()()()().) | |
Score(Collector) | Scores and collects all matching documents. (Inherited from Scorer.) | |
Score(HitCollector) | Obsolete. Scores and collects all matching documents. (Inherited from Scorer.) | |
Score(HitCollector, Int32) | Obsolete. Expert: Collects matching documents in a range. Hook for optimization.
Note that {@link #Next()} must be called once before this method is called
for the first time.
(Inherited from Scorer.) | |
Score(Collector, Int32, Int32) | Expert: Collects matching documents in a range. Hook for optimization.
Note, (Inherited from Scorer.)CopyC# firstDocID | |
SetFreqCurrentDoc | (Overrides SpanScorer..::..SetFreqCurrentDoc()()()().) | |
SkipTo | Obsolete. (Inherited from SpanScorer.) | |
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
doc | (Inherited from SpanScorer.) | |
firstTime | Obsolete. (Inherited from SpanScorer.) | |
freq | (Inherited from SpanScorer.) | |
more | (Inherited from SpanScorer.) | |
norms | (Inherited from SpanScorer.) | |
payloadScore | ||
spans | (Inherited from SpanScorer.) | |
value_Renamed | (Inherited from SpanScorer.) | |
weight | (Inherited from SpanScorer.) |
Properties
Name | Description | |
---|---|---|
Enclosing_Instance |