Module org.apache.lucene.queries
Class PayloadScoreQuery.PayloadSpanScorer
java.lang.Object
org.apache.lucene.search.Scorable
org.apache.lucene.search.Scorer
org.apache.lucene.queries.spans.SpanScorer
org.apache.lucene.queries.payloads.PayloadScoreQuery.PayloadSpanScorer
- Enclosing class:
PayloadScoreQuery
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable -
Field Summary
FieldsFields inherited from class org.apache.lucene.queries.spans.SpanScorer
norms, scorer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePayloadSpanScorer(PayloadScoreQuery.PayloadSpans spans, Similarity.SimScorer scorer, NumericDocValues norms) -
Method Summary
Modifier and TypeMethodDescriptionprotected Explanationprotected floatprotected floatprotected floatScore the current doc.Methods inherited from class org.apache.lucene.queries.spans.SpanScorer
docID, getMaxScore, getSpans, iterator, score, setFreqCurrentDoc, twoPhaseIteratorMethods inherited from class org.apache.lucene.search.Scorer
advanceShallowMethods inherited from class org.apache.lucene.search.Scorable
getChildren, setMinCompetitiveScore, smoothingScore
-
Field Details
-
spans
-
-
Constructor Details
-
PayloadSpanScorer
private PayloadSpanScorer(PayloadScoreQuery.PayloadSpans spans, Similarity.SimScorer scorer, NumericDocValues norms) throws IOException - Throws:
IOException
-
-
Method Details
-
getPayloadScore
protected float getPayloadScore() -
getPayloadExplanation
-
getSpanScore
- Throws:
IOException
-
scoreCurrentDoc
Description copied from class:SpanScorerScore the current doc. The default implementation scores the doc with the similarity using the slop-adjustedSpanScorer.freq.- Overrides:
scoreCurrentDocin classSpanScorer- Throws:
IOException
-