Class PutMappingRequestBuilder
java.lang.Object
org.opensearch.action.ActionRequestBuilder<PutMappingRequest,AcknowledgedResponse>
org.opensearch.action.support.clustermanager.ClusterManagerNodeOperationRequestBuilder<PutMappingRequest,AcknowledgedResponse,PutMappingRequestBuilder>
org.opensearch.action.support.master.MasterNodeOperationRequestBuilder<PutMappingRequest,AcknowledgedResponse,PutMappingRequestBuilder>
org.opensearch.action.support.master.AcknowledgedRequestBuilder<PutMappingRequest,AcknowledgedResponse,PutMappingRequestBuilder>
org.opensearch.action.admin.indices.mapping.put.PutMappingRequestBuilder
@PublicApi(since="1.0.0")
public class PutMappingRequestBuilder
extends AcknowledgedRequestBuilder<PutMappingRequest,AcknowledgedResponse,PutMappingRequestBuilder>
Builder for a put mapping request
- Opensearch.api:
-
Field Summary
Fields inherited from class org.opensearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetConcreteIndex
(org.opensearch.core.index.Index index) setIndices
(String... indices) setIndicesOptions
(IndicesOptions options) Specifies what type of requested indices to ignore and wildcard indices expressions.A specialized simplified mapping source method, takes the form of simple properties definition: ("field1", "type=string,store=true").The mapping source definition.The mapping source definition.setSource
(org.opensearch.core.xcontent.XContentBuilder mappingBuilder) The mapping source definition.Methods inherited from class org.opensearch.action.support.master.AcknowledgedRequestBuilder
setTimeout, setTimeout
Methods inherited from class org.opensearch.action.support.clustermanager.ClusterManagerNodeOperationRequestBuilder
setClusterManagerNodeTimeout, setClusterManagerNodeTimeout, setMasterNodeTimeout, setMasterNodeTimeout
-
Constructor Details
-
PutMappingRequestBuilder
-
-
Method Details
-
setIndices
-
setConcreteIndex
-
setIndicesOptions
Specifies what type of requested indices to ignore and wildcard indices expressions.For example indices that don't exist.
-
setSource
public PutMappingRequestBuilder setSource(org.opensearch.core.xcontent.XContentBuilder mappingBuilder) The mapping source definition. -
setSource
The mapping source definition. -
setSource
public PutMappingRequestBuilder setSource(String mappingSource, org.opensearch.core.xcontent.MediaType mediaType) The mapping source definition. -
setSource
A specialized simplified mapping source method, takes the form of simple properties definition: ("field1", "type=string,store=true").
-