public class PayloadNearQuery.PayloadNearSpanScorer extends Spans implements SpanCollector
Scorer.ChildScorer| Modifier and Type | Field and Description |
|---|---|
protected float |
payloadScore |
docScorer, freq, NO_MORE_POSITIONS, numMatchesNO_MORE_DOCS| Modifier | Constructor and Description |
|---|---|
protected |
PayloadNearQuery.PayloadNearSpanScorer(Spans spans,
SpanWeight weight,
Similarity.SimScorer docScorer) |
| Modifier and Type | Method and Description |
|---|---|
int |
advance(int target) |
void |
collect(SpanCollector collector) |
void |
collectLeaf(PostingsEnum postings,
int position,
Term term) |
long |
cost() |
int |
docID() |
protected void |
doCurrentSpans() |
protected void |
doStartCurrentDoc() |
int |
endPosition() |
int |
nextDoc() |
int |
nextStartPosition() |
float |
positionsCost() |
protected void |
processPayloads(Collection<byte[]> payLoads,
int start,
int end)
By default, uses the
PayloadFunction to score the payloads, but
can be overridden to do other things. |
void |
reset() |
float |
scoreCurrentDoc() |
int |
startPosition() |
int |
width() |
freq, score, setFreqCurrentDoc, sloppyFreq, toStringasTwoPhaseIterator, getChildren, getWeightall, empty, slowAdvanceprotected PayloadNearQuery.PayloadNearSpanScorer(Spans spans, SpanWeight weight, Similarity.SimScorer docScorer) throws IOException
IOExceptionprotected void processPayloads(Collection<byte[]> payLoads, int start, int end)
PayloadFunction to score the payloads, but
can be overridden to do other things.payLoads - The payloadsstart - The start position of the span being scoredend - The end position of the span being scoredSpanspublic int nextStartPosition()
throws IOException
nextStartPosition in class SpansIOExceptionpublic int startPosition()
startPosition in class Spanspublic int endPosition()
endPosition in class Spanspublic void collect(SpanCollector collector) throws IOException
collect in class SpansIOExceptionprotected void doStartCurrentDoc()
throws IOException
doStartCurrentDoc in class SpansIOExceptionprotected void doCurrentSpans()
throws IOException
doCurrentSpans in class SpansIOExceptionpublic float scoreCurrentDoc()
throws IOException
scoreCurrentDoc in class SpansIOExceptionpublic void collectLeaf(PostingsEnum postings, int position, Term term) throws IOException
collectLeaf in interface SpanCollectorIOExceptionpublic void reset()
reset in interface SpanCollectorpublic int docID()
docID in class DocIdSetIteratorpublic int nextDoc()
throws IOException
nextDoc in class DocIdSetIteratorIOExceptionpublic int advance(int target)
throws IOException
advance in class DocIdSetIteratorIOExceptionpublic long cost()
cost in class DocIdSetIteratorpublic float positionsCost()
positionsCost in class SpansCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.