Class CustomAnalyzer.Builder

All Implemented Interfaces:
Enclosing class:

public static class CustomAnalyzer.Builder
extends ObjectBuilderBase
implements ObjectBuilder<CustomAnalyzer>
Builder for CustomAnalyzer.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • charFilter

      public final CustomAnalyzer.Builder charFilter​(java.util.List<java.lang.String> list)
      API name: char_filter

      Adds all elements of list to charFilter.

    • charFilter

      public final CustomAnalyzer.Builder charFilter​(java.lang.String value, java.lang.String... values)
      API name: char_filter

      Adds one or more values to charFilter.

    • filter

      public final CustomAnalyzer.Builder filter​(java.util.List<java.lang.String> list)
      API name: filter

      Adds all elements of list to filter.

    • filter

      public final CustomAnalyzer.Builder filter​(java.lang.String value, java.lang.String... values)
      API name: filter

      Adds one or more values to filter.

    • positionIncrementGap

      public final CustomAnalyzer.Builder positionIncrementGap​(@Nullable java.lang.Integer value)
      API name: position_increment_gap
    • positionOffsetGap

      public final CustomAnalyzer.Builder positionOffsetGap​(@Nullable java.lang.Integer value)
      API name: position_offset_gap
    • tokenizer

      public final CustomAnalyzer.Builder tokenizer​(java.lang.String value)
      Required - API name: tokenizer
    • build

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