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>
Builder for
MatchOnlyTextProperty
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description MatchOnlyTextProperty
build()
Builds aMatchOnlyTextProperty
.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.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.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.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.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.MatchOnlyTextProperty.Builder
meta(java.lang.String key, java.lang.String value)
Metadata about the field.MatchOnlyTextProperty.Builder
meta(java.util.Map<java.lang.String,java.lang.String> map)
Metadata about the field.protected MatchOnlyTextProperty.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fields
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
tofields
. -
fields
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
tometa
. -
meta
Metadata about the field.API name:
meta
Adds an entry to
meta
. -
copyTo
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
tocopyTo
. -
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 classWithJsonObjectBuilderBase<MatchOnlyTextProperty.Builder>
-
build
Builds aMatchOnlyTextProperty
.- Specified by:
build
in interfaceObjectBuilder<MatchOnlyTextProperty>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-