Class TermsCollector<DV>

All Implemented Interfaces:
Collector, LeafCollector
Direct Known Subclasses:
TermsCollector.MV, TermsCollector.SV

abstract class TermsCollector<DV> extends DocValuesTermsCollector<DV>
A collector that collects all terms from a specified field matching the query.
  • Field Details

  • Constructor Details

  • Method Details

    • getCollectorTerms

      public BytesRefHash getCollectorTerms()
    • create

      static TermsCollector<?> create(String field, boolean multipleValuesPerDocument)
      Chooses the right TermsCollector implementation.
      Parameters:
      field - The field to collect terms for
      multipleValuesPerDocument - Whether the field to collect terms for has multiple values per document.
      Returns:
      a TermsCollector instance
    • scoreMode

      public ScoreMode scoreMode()
      Description copied from interface: Collector
      Indicates what features are required from the scorer.