Class PayloadNearQuery.PayloadNearSpanScorer
Inheritance
System.Object
PayloadNearQuery.PayloadNearSpanScorer
Inherited Members
Namespace: Lucene.Net.Search.Payloads
Assembly: Lucene.Net.dll
Syntax
public class PayloadNearSpanScorer : SpanScorer
Constructors
| Improve this Doc View SourcePayloadNearSpanScorer(PayloadNearQuery, Spans, Weight, Similarity, 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
| Improve this Doc View Sourcem_payloadScore
Declaration
protected float m_payloadScore
Field Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceGetPayloads(Spans[])
Declaration
public virtual void GetPayloads(Spans[] subSpans)
Parameters
Type | Name | Description |
---|---|---|
Spans[] | subSpans |
GetScore()
Declaration
public override float GetScore()
Returns
Type | Description |
---|---|
System.Single |
Overrides
| Improve this Doc View SourceProcessPayloads(ICollection<Byte[]>, Int32, Int32)
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<System.Byte[]> | payLoads | The payloads |
System.Int32 | start | The start position of the span being scored |
System.Int32 | end | The end position of the span being scored |
See Also
Lucene.Net.Search.Spans.Spans.#ctor
SetFreqCurrentDoc()
Declaration
protected override bool SetFreqCurrentDoc()
Returns
Type | Description |
---|---|
System.Boolean |