java.lang.Object
org.apache.lucene.search.SimpleCollector
org.apache.lucene.search.join.DocValuesTermsCollector<DV>
org.apache.lucene.search.join.TermsCollector<DV>
- All Implemented Interfaces:
Collector,LeafCollector
- Direct Known Subclasses:
TermsCollector.MV,TermsCollector.SV
A collector that collects all terms from a specified field matching the query.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static classNested classes/interfaces inherited from class org.apache.lucene.search.join.DocValuesTermsCollector
DocValuesTermsCollector.Function<R> -
Field Summary
FieldsFields inherited from class org.apache.lucene.search.join.DocValuesTermsCollector
docValues -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static TermsCollector<?> Chooses the rightTermsCollectorimplementation.Indicates what features are required from the scorer.Methods inherited from class org.apache.lucene.search.join.DocValuesTermsCollector
doSetNextReader, sortedDocValues, sortedSetDocValuesMethods inherited from class org.apache.lucene.search.SimpleCollector
collect, getLeafCollector, setScorerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.search.LeafCollector
collect, competitiveIterator, finish
-
Field Details
-
collectorTerms
-
-
Constructor Details
-
TermsCollector
TermsCollector(DocValuesTermsCollector.Function<DV> docValuesCall)
-
-
Method Details
-
getCollectorTerms
-
create
Chooses the rightTermsCollectorimplementation.- Parameters:
field- The field to collect terms formultipleValuesPerDocument- Whether the field to collect terms for has multiple values per document.- Returns:
- a
TermsCollectorinstance
-
scoreMode
Description copied from interface:CollectorIndicates what features are required from the scorer.
-