static class TermsWithScoreCollector.MV.Avg extends TermsWithScoreCollector.MV
TermsWithScoreCollector.MV.AvgTermsWithScoreCollector.MV, TermsWithScoreCollector.SVDocValuesTermsCollector.Function<R>| Modifier and Type | Field and Description |
|---|---|
(package private) int[] |
scoreCounts |
collectedTerms, scoreMode, scorer, scoreSumsdocValues| Constructor and Description |
|---|
Avg(DocValuesTermsCollector.Function<SortedSetDocValues> docValuesCall) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(int doc)
Called once for every document matching a query, with the unbased document
number.
|
float[] |
getScoresPerTerm() |
create, getCollectedTerms, scoreMode, setScorerbinaryDocValues, doSetNextReader, sortedSetDocValuesgetLeafCollectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCollectorMV, createCollectorSV, verbose, wrapgetLeafCollectorAvg(DocValuesTermsCollector.Function<SortedSetDocValues> docValuesCall)
public void collect(int doc)
throws java.io.IOException
LeafCollectorNote: The collection of the current segment can be terminated by throwing
a CollectionTerminatedException. In this case, the last docs of the
current LeafReaderContext will be skipped and IndexSearcher
will swallow the exception and continue collection with the next leaf.
Note: This is called in an inner search loop. For good search performance,
implementations of this method should not call IndexSearcher.doc(int) or
IndexReader.document(int) on every hit.
Doing so can slow searches by an order of magnitude or more.
collect in interface LeafCollectorcollect in class TermsWithScoreCollector.MVjava.io.IOExceptionpublic float[] getScoresPerTerm()
getScoresPerTerm in interface GenericTermsCollectorgetScoresPerTerm in class TermsWithScoreCollector<SortedSetDocValues>