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
ConstructorsModifierConstructorDescriptionprivate
PayloadSpanScorer
(SpanWeight weight, PayloadScoreQuery.PayloadSpans spans, LeafSimScorer docScorer) -
Method Summary
Modifier and TypeMethodDescriptionprotected Explanation
protected float
protected float
protected float
Score the current doc.Methods inherited from class org.apache.lucene.queries.spans.SpanScorer
docID, getMaxScore, getSpans, iterator, score, setFreqCurrentDoc, twoPhaseIterator
Methods inherited from class org.apache.lucene.search.Scorer
advanceShallow, getWeight
Methods 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:SpanScorer
Score the current doc. The default implementation scores the doc with the similarity using the slop-adjustedSpanScorer.freq
.- Overrides:
scoreCurrentDoc
in classSpanScorer
- Throws:
IOException
-