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 MatchOnlyTextPropertybuild()Builds aMatchOnlyTextProperty.MatchOnlyTextProperty.BuildercopyTo(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.BuildercopyTo(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.Builderfields(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.Builderfields(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.Builderfields(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.Buildermeta(java.lang.String key, java.lang.String value)Metadata about the field.MatchOnlyTextProperty.Buildermeta(java.util.Map<java.lang.String,java.lang.String> map)Metadata about the field.protected MatchOnlyTextProperty.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:
fieldsAdds all entries of
maptofields. -
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:
fieldsAdds 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:
fieldsAdds an entry to
fieldsusing 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:
metaAdds all entries of
maptometa. -
meta
Metadata about the field.API name:
metaAdds 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_toAdds all elements of
listtocopyTo. -
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_toAdds one or more values to
copyTo. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<MatchOnlyTextProperty.Builder>
-
build
Builds aMatchOnlyTextProperty.- Specified by:
buildin interfaceObjectBuilder<MatchOnlyTextProperty>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-