protected class

PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer

extends SpanScorer
java.lang.Object
   ↳ org.apache.lucene.search.DocIdSetIterator
     ↳ org.apache.lucene.search.Scorer
       ↳ org.apache.lucene.search.spans.SpanScorer
         ↳ org.apache.lucene.search.payloads.PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer

Summary

[Expand]
Inherited Constants
From class org.apache.lucene.search.DocIdSetIterator
Fields
protected byte[] payload
protected float payloadScore
protected int payloadsSeen
protected TermPositions positions
[Expand]
Inherited Fields
From class org.apache.lucene.search.spans.SpanScorer
Public Constructors
PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer(TermSpans spans, Weight weight, Similarity similarity, byte[] norms)
Public Methods
float score()
Returns the score of the current document matching the query.
Protected Methods
Explanation explain(int doc)
This method is no longer an official member of Scorer, but it is needed by SpanWeight to build an explanation.
float getPayloadScore()
The score for the payload
float getSpanScore()
Returns the SpanScorer score only.
void processPayload(Similarity similarity)
boolean setFreqCurrentDoc()
[Expand]
Inherited Methods
From class org.apache.lucene.search.spans.SpanScorer
From class org.apache.lucene.search.Scorer
From class org.apache.lucene.search.DocIdSetIterator
From class java.lang.Object

Fields

protected byte[] payload

protected float payloadScore

protected int payloadsSeen

protected TermPositions positions

Public Constructors

public PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer (TermSpans spans, Weight weight, Similarity similarity, byte[] norms)

Throws
IOException

Public Methods

public float score ()

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).

Throws
IOException

Protected Methods

protected Explanation explain (int doc)

This method is no longer an official member of Scorer, but it is needed by SpanWeight to build an explanation.

Throws
IOException

protected float getPayloadScore ()

The score for the payload

Returns

protected float getSpanScore ()

Returns the SpanScorer score only.

Should not be overridden without good cause!

Returns
  • the score for just the Span part w/o the payload
Throws
IOException
IOException
See Also

protected void processPayload (Similarity similarity)

Throws
IOException

protected boolean setFreqCurrentDoc ()

Throws
IOException