Class PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer
Inheritance
System.Object
PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search.Payloads
Assembly: Lucene.Net.dll
Syntax
protected class PayloadTermSpanScorer : SpanScorer
Constructors
| Improve this Doc View SourcePayloadTermSpanScorer(PayloadTermQuery.PayloadTermWeight, TermSpans, Weight, Similarity.SimScorer)
Declaration
public PayloadTermSpanScorer(PayloadTermQuery.PayloadTermWeight outerInstance, TermSpans spans, Weight weight, Similarity.SimScorer docScorer)
Parameters
Type | Name | Description |
---|---|---|
PayloadTermQuery.PayloadTermWeight | outerInstance | |
TermSpans | spans | |
Weight | weight | |
Similarity.SimScorer | docScorer |
Fields
| Improve this Doc View Sourcem_payload
Declaration
protected BytesRef m_payload
Field Value
Type | Description |
---|---|
BytesRef |
m_payloadScore
Declaration
protected float m_payloadScore
Field Value
Type | Description |
---|---|
System.Single |
m_payloadsSeen
Declaration
protected int m_payloadsSeen
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceGetPayloadScore()
The score for the payload
Declaration
protected virtual float GetPayloadScore()
Returns
Type | Description |
---|---|
System.Single | The score, as calculated by DocScore(Int32, String, Int32, Single) |
GetScore()
Declaration
public override float GetScore()
Returns
Type | Description |
---|---|
System.Single | GetSpanScore() * GetPayloadScore() |
Overrides
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if there is a low-level I/O error |
GetSpanScore()
Returns the SpanScorer score only.
Should not be overridden without good cause!
Declaration
protected virtual float GetSpanScore()
Returns
Type | Description |
---|---|
System.Single | the score for just the Span part w/o the payload |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | if there is a low-level I/O error |
See Also
| Improve this Doc View SourceProcessPayload(Similarity)
Declaration
protected virtual void ProcessPayload(Similarity similarity)
Parameters
Type | Name | Description |
---|---|---|
Similarity | similarity |
SetFreqCurrentDoc()
Declaration
protected override bool SetFreqCurrentDoc()
Returns
Type | Description |
---|---|
System.Boolean |