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 |
---|---|---|
Payload |
outerInstance | |
Term |
spans | |
Weight | weight | |
Similarity. |
docScorer |
Fields
| Improve this Doc View Sourcem_payload
Declaration
protected BytesRef m_payload
Field Value
Type | Description |
---|---|
Bytes |
m_payloadScore
Declaration
protected float m_payloadScore
Field Value
Type | Description |
---|---|
System. |
m_payloadsSeen
Declaration
protected int m_payloadsSeen
Field Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceGetPayloadScore()
The score for the payload
Declaration
protected virtual float GetPayloadScore()
Returns
Type | Description |
---|---|
System. |
The score, as calculated by
Doc |
GetScore()
Declaration
public override float GetScore()
Returns
Type | Description |
---|---|
System. |
Get |
Overrides
Exceptions
Type | Condition |
---|---|
System. |
if there is a low-level I/O error |
GetSpanScore()
Returns the Span
Should not be overridden without good cause!
Declaration
protected virtual float GetSpanScore()
Returns
Type | Description |
---|---|
System. |
the score for just the Span part w/o the payload |
Exceptions
Type | Condition |
---|---|
System. |
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. |