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
private class PayloadScoreQuery.PayloadSpanScorer extends SpanScorer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable
-
-
Field Summary
Fields Modifier and Type Field Description private PayloadScoreQuery.PayloadSpans
spans
-
Fields inherited from class org.apache.lucene.queries.spans.SpanScorer
docScorer
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PayloadSpanScorer(SpanWeight weight, PayloadScoreQuery.PayloadSpans spans, LeafSimScorer docScorer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Explanation
getPayloadExplanation()
protected float
getPayloadScore()
protected float
getSpanScore()
protected float
scoreCurrentDoc()
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 Detail
-
spans
private final PayloadScoreQuery.PayloadSpans spans
-
-
Constructor Detail
-
PayloadSpanScorer
private PayloadSpanScorer(SpanWeight weight, PayloadScoreQuery.PayloadSpans spans, LeafSimScorer docScorer) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getPayloadScore
protected float getPayloadScore()
-
getPayloadExplanation
protected Explanation getPayloadExplanation()
-
getSpanScore
protected float getSpanScore() throws java.io.IOException
- Throws:
java.io.IOException
-
scoreCurrentDoc
protected float scoreCurrentDoc() throws java.io.IOException
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:
java.io.IOException
-
-