Package org.apache.lucene.queries.spans
Class SpanScorer
java.lang.Object
org.apache.lucene.search.Scorable
org.apache.lucene.search.Scorer
org.apache.lucene.queries.spans.SpanScorer
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final NumericDocValuesprotected final Similarity.SimScorerprotected final Spans -
Constructor Summary
ConstructorsConstructorDescriptionSpanScorer(Spans spans, Similarity.SimScorer scorer, NumericDocValues norms) Sole constructor. -
Method Summary
Modifier and TypeMethodDescriptionintdocID()floatgetMaxScore(int upTo) getSpans()return the Spans for this Scorer *iterator()final floatscore()protected floatScore the current doc.protected final voidSetsfreqfor the current document.Methods inherited from class org.apache.lucene.search.Scorer
advanceShallowMethods inherited from class org.apache.lucene.search.Scorable
getChildren, setMinCompetitiveScore, smoothingScore
-
Field Details
-
spans
-
scorer
-
norms
-
-
Constructor Details
-
SpanScorer
Sole constructor.
-
-
Method Details
-
getSpans
return the Spans for this Scorer * -
docID
public int docID() -
iterator
-
twoPhaseIterator
- Overrides:
twoPhaseIteratorin classScorer
-
scoreCurrentDoc
Score the current doc. The default implementation scores the doc with the similarity using the slop-adjustedfreq.- Throws:
IOException
-
setFreqCurrentDoc
Setsfreqfor the current document.This will be called at most once per document.
- Throws:
IOException
-
score
- Specified by:
scorein classScorable- Throws:
IOException
-
getMaxScore
- Specified by:
getMaxScorein classScorer- Throws:
IOException
-