All Implemented Interfaces:
WithJson<Filter.Builder>, ObjectBuilder<Filter>
Enclosing class:
Filter

public static class Filter.Builder extends WithJsonObjectBuilderBase<Filter.Builder> implements ObjectBuilder<Filter>
Builder for Filter.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • maxDocFreq

      public final Filter.Builder maxDocFreq(@Nullable Integer value)
      Ignore words which occur in more than this many docs. Defaults to unbounded.

      API name: max_doc_freq

    • maxNumTerms

      public final Filter.Builder maxNumTerms(@Nullable Integer value)
      Maximum number of terms that must be returned per field.

      API name: max_num_terms

    • maxTermFreq

      public final Filter.Builder maxTermFreq(@Nullable Integer value)
      Ignore words with more than this frequency in the source doc. Defaults to unbounded.

      API name: max_term_freq

    • maxWordLength

      public final Filter.Builder maxWordLength(@Nullable Integer value)
      The maximum word length above which words will be ignored. Defaults to unbounded.

      API name: max_word_length

    • minDocFreq

      public final Filter.Builder minDocFreq(@Nullable Integer value)
      Ignore terms which do not occur in at least this many docs.

      API name: min_doc_freq

    • minTermFreq

      public final Filter.Builder minTermFreq(@Nullable Integer value)
      Ignore words with less than this frequency in the source doc.

      API name: min_term_freq

    • minWordLength

      public final Filter.Builder minWordLength(@Nullable Integer value)
      The minimum word length below which words will be ignored.

      API name: min_word_length

    • self

      protected Filter.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<Filter.Builder>
    • build

      public Filter build()
      Builds a Filter.
      Specified by:
      build in interface ObjectBuilder<Filter>
      Throws:
      NullPointerException - if some of the required fields are null.