Class MatchOnlyTextProperty.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MatchOnlyTextProperty.Builder>
co.elastic.clients.elasticsearch._types.mapping.MatchOnlyTextProperty.Builder
All Implemented Interfaces:
WithJson<MatchOnlyTextProperty.Builder>, ObjectBuilder<MatchOnlyTextProperty>
Enclosing class:
MatchOnlyTextProperty

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

    • Builder

      public Builder()
  • Method Details

    • fields

      public final MatchOnlyTextProperty.Builder fields​(java.util.Map<java.lang.String,​Property> map)
      Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.

      API name: fields

      Adds all entries of map to fields.

    • fields

      public final MatchOnlyTextProperty.Builder fields​(java.lang.String key, Property value)
      Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.

      API name: fields

      Adds an entry to fields.

    • fields

      public final MatchOnlyTextProperty.Builder fields​(java.lang.String key, java.util.function.Function<Property.Builder,​ObjectBuilder<Property>> fn)
      Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.

      API name: fields

      Adds an entry to fields using a builder lambda.

    • meta

      public final MatchOnlyTextProperty.Builder meta​(java.util.Map<java.lang.String,​java.lang.String> map)
      Metadata about the field.

      API name: meta

      Adds all entries of map to meta.

    • meta

      public final MatchOnlyTextProperty.Builder meta​(java.lang.String key, java.lang.String value)
      Metadata about the field.

      API name: meta

      Adds an entry to meta.

    • copyTo

      public final MatchOnlyTextProperty.Builder copyTo​(java.util.List<java.lang.String> list)
      Allows you to copy the values of multiple fields into a group field, which can then be queried as a single field.

      API name: copy_to

      Adds all elements of list to copyTo.

    • copyTo

      public final MatchOnlyTextProperty.Builder copyTo​(java.lang.String value, java.lang.String... values)
      Allows you to copy the values of multiple fields into a group field, which can then be queried as a single field.

      API name: copy_to

      Adds one or more values to copyTo.

    • self

      Specified by:
      self in class WithJsonObjectBuilderBase<MatchOnlyTextProperty.Builder>
    • build

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