Class MappedMultiFields.MappedMultiTermsEnum

    • Field Detail

      • field

        final java.lang.String field
    • Constructor Detail

      • MappedMultiTermsEnum

        public MappedMultiTermsEnum​(java.lang.String field,
                                    MergeState mergeState,
                                    MultiTermsEnum multiTermsEnum)
    • Method Detail

      • totalTermFreq

        public long totalTermFreq()
                           throws java.io.IOException
        Description copied from class: TermsEnum
        Returns the total number of occurrences of this term across all documents (the sum of the freq() for each doc that has this term). Note that, like other term measures, this measure does not take deleted documents into account.
        Overrides:
        totalTermFreq in class FilterLeafReader.FilterTermsEnum
        Throws:
        java.io.IOException
      • postings

        public PostingsEnum postings​(PostingsEnum reuse,
                                     int flags)
                              throws java.io.IOException
        Description copied from class: TermsEnum
        Get PostingsEnum for the current term, with control over whether freqs, positions, offsets or payloads are required. Do not call this when the enum is unpositioned. This method will not return null.

        NOTE: the returned iterator may return deleted documents, so deleted documents have to be checked on top of the PostingsEnum.

        Overrides:
        postings in class FilterLeafReader.FilterTermsEnum
        Parameters:
        reuse - pass a prior PostingsEnum for possible reuse
        flags - specifies which optional per-document values you require; see PostingsEnum.FREQS
        Throws:
        java.io.IOException