Class PayloadScoreQuery.PayloadSpanScorer
- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.Scorer
-
- org.apache.lucene.search.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.PayloadSpansspans-
Fields inherited from class org.apache.lucene.search.spans.SpanScorer
docScorer
-
-
Constructor Summary
Constructors Modifier Constructor Description privatePayloadSpanScorer(SpanWeight weight, PayloadScoreQuery.PayloadSpans spans, LeafSimScorer docScorer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExplanationgetPayloadExplanation()protected floatgetPayloadScore()protected floatgetSpanScore()protected floatscoreCurrentDoc()Score the current doc.-
Methods inherited from class org.apache.lucene.search.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
-
-
-
-
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.IOExceptionDescription 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:
java.io.IOException
-
-