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

  NameDescription
Protected methodPayloadNearQuery..::..PayloadNearSpanScorer
Initializes a new instance of the PayloadNearQuery..::..PayloadNearSpanScorer class

Methods

  NameDescription
Public methodAdvance (Inherited from SpanScorer.)
Public methodDoc Obsolete. (Inherited from SpanScorer.)
Public methodDocID (Inherited from SpanScorer.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExplain (Overrides SpanScorer..::..Explain(Int32).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetPayloads
Public methodGetSimilarity
Returns the Similarity implementation used by this scorer.
(Inherited from Scorer.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNext Obsolete. (Inherited from SpanScorer.)
Public methodNextDoc (Inherited from SpanScorer.)
Protected methodProcessPayloads
By default, uses the {@link PayloadFunction} to score the payloads, but can be overridden to do other things.
Public methodScore()()()() (Overrides SpanScorer..::..Score()()()().)
Public methodScore(Collector)
Scores and collects all matching documents.
(Inherited from Scorer.)
Public methodScore(HitCollector) Obsolete.
Scores and collects all matching documents.
(Inherited from Scorer.)
Protected methodScore(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.)
Public methodScore(Collector, Int32, Int32)
Expert: Collects matching documents in a range. Hook for optimization. Note,
CopyC#
firstDocID
is added to ensure that {@link #NextDoc()} was called before this method.
(Inherited from Scorer.)
Public methodSetFreqCurrentDoc (Overrides SpanScorer..::..SetFreqCurrentDoc()()()().)
Public methodSkipTo Obsolete. (Inherited from SpanScorer.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Protected fielddoc (Inherited from SpanScorer.)
Protected fieldfirstTime Obsolete. (Inherited from SpanScorer.)
Protected fieldfreq (Inherited from SpanScorer.)
Protected fieldmore (Inherited from SpanScorer.)
Protected fieldnorms (Inherited from SpanScorer.)
Protected fieldpayloadScore
Protected fieldspans (Inherited from SpanScorer.)
Protected fieldvalue_Renamed (Inherited from SpanScorer.)
Protected fieldweight (Inherited from SpanScorer.)

Properties

  NameDescription
Public propertyEnclosing_Instance

See Also