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 class
Nested 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 rightTermsCollector
implementation.Indicates what features are required from the scorer.Methods inherited from class org.apache.lucene.search.join.DocValuesTermsCollector
doSetNextReader, sortedDocValues, sortedSetDocValues
Methods inherited from class org.apache.lucene.search.SimpleCollector
collect, getLeafCollector, setScorer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 rightTermsCollector
implementation.- Parameters:
field
- The field to collect terms formultipleValuesPerDocument
- Whether the field to collect terms for has multiple values per document.- Returns:
- a
TermsCollector
instance
-
scoreMode
Description copied from interface:Collector
Indicates what features are required from the scorer.
-