Class MatchOnlyTextProperty.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.mapping.MatchOnlyTextProperty.Builder
- All Implemented Interfaces:
CopyableBuilder<MatchOnlyTextProperty.Builder,,MatchOnlyTextProperty> MutableBuilder<MatchOnlyTextProperty.Builder,,MatchOnlyTextProperty> ObjectBuilder<MatchOnlyTextProperty>
- Enclosing class:
MatchOnlyTextProperty
public static class MatchOnlyTextProperty.Builder
extends ObjectBuilderBase
implements CopyableBuilder<MatchOnlyTextProperty.Builder,MatchOnlyTextProperty>
Builder for
MatchOnlyTextProperty.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMatchOnlyTextProperty.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:copy_toAPI name:copy_tofields(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.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.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<MatchOnlyTextProperty.Builder,MatchOnlyTextProperty> - Returns:
- a new builder instance.
-
copyTo
API name:copy_toAdds all elements of
listtocopyTo. -
copyTo
API name:copy_toAdds one or more values to
copyTo. -
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 elements 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
@Nonnull 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 a value to
fieldsusing a builder lambda. -
meta
Metadata about the field.API name:
metaAdds all elements of
maptometa. -
meta
Metadata about the field.API name:
metaAdds an entry to
meta. -
build
Builds aMatchOnlyTextProperty.- Specified by:
buildin interfaceObjectBuilder<MatchOnlyTextProperty>- Throws:
NullPointerException- if some of the required fields are null.
-