Class TermFreqValueSource

  • Direct Known Subclasses:
    TFValueSource

    public class TermFreqValueSource
    extends DocFreqValueSource
    Function that returns DocsEnum.freq() for the supplied term in every document.

    If the term does not exist in the document, returns 0. If frequencies are omitted, returns 1.

    • Constructor Detail

      • TermFreqValueSource

        public TermFreqValueSource​(java.lang.String field,
                                   java.lang.String val,
                                   java.lang.String indexedField,
                                   BytesRef indexedBytes)