Class TermsCollector<DV>

    • Method Detail

      • getCollectorTerms

        public BytesRefHash getCollectorTerms()
      • create

        static TermsCollector<?> create​(java.lang.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.