Class PayloadNearQuery.PayloadNearSpanScorer
Inheritance
PayloadNearQuery.PayloadNearSpanScorer
Inherited Members
Namespace: Lucene.Net.Search.Payloads
Assembly: Lucene.Net.dll
Syntax
public class PayloadNearQuery.PayloadNearSpanScorer : SpanScorer
Constructors
PayloadNearSpanScorer(PayloadNearQuery, Spans, Weight, Similarity, SimScorer)
Declaration
protected PayloadNearSpanScorer(PayloadNearQuery outerInstance, Spans spans, Weight weight, Similarity similarity, Similarity.SimScorer docScorer)
Parameters
Type | Name | Description |
---|---|---|
PayloadNearQuery | outerInstance | |
Spans | spans | |
Weight | weight | |
Similarity | similarity | |
Similarity.SimScorer | docScorer |
Fields
m_payloadScore
Declaration
protected float m_payloadScore
Field Value
Type | Description |
---|---|
float |
Methods
GetPayloads(Spans[])
Declaration
public virtual void GetPayloads(Spans[] subSpans)
Parameters
Type | Name | Description |
---|---|---|
Spans[] | subSpans |
GetScore()
Returns the score of the current document matching the query. Initially invalid, until NextDoc() or Advance(int) is called the first time, or when called from within Collect(int).
Declaration
public override float GetScore()
Returns
Type | Description |
---|---|
float |
Overrides
ProcessPayloads(ICollection<byte[]>, int, int)
By default, uses the PayloadFunction to score the payloads, but can be overridden to do other things.
Declaration
protected virtual void ProcessPayloads(ICollection<byte[]> payLoads, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
ICollection<byte[]> | payLoads | The payloads |
int | start | The start position of the span being scored |
int | end | The end position of the span being scored |
See Also
Spans()
SetFreqCurrentDoc()
Declaration
protected override bool SetFreqCurrentDoc()
Returns
Type | Description |
---|---|
bool |