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
docScorer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePayloadSpanScorer(SpanWeight weight, PayloadScoreQuery.PayloadSpans spans, LeafSimScorer docScorer) -
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
advanceShallow, getWeightMethods inherited from class org.apache.lucene.search.Scorable
getChildren, setMinCompetitiveScore, smoothingScore
-
Field Details
-
spans
-
-
Constructor Details
-
PayloadSpanScorer
private PayloadSpanScorer(SpanWeight weight, PayloadScoreQuery.PayloadSpans spans, LeafSimScorer docScorer) 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
-