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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMatchOnlyTextProperty.Allows you to copy the values of multiple fields into a group field, which can then be queried as a single field.Allows you to copy the values of multiple fields into a group field, which can then be queried as a single field.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.fields(String key, 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.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.Metadata about the field.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, _mapPutAll
-
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(String key, 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
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
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:
NullPointerException- if some of the required fields are null.
-