Class PutMappingRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder<Request,Response,RequestBuilder>
org.elasticsearch.action.support.master.AcknowledgedRequestBuilder<PutMappingRequest,AcknowledgedResponse,PutMappingRequestBuilder>
org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequestBuilder
public class PutMappingRequestBuilder
extends AcknowledgedRequestBuilder<PutMappingRequest,AcknowledgedResponse,PutMappingRequestBuilder>
Builder for a put mapping request
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionPutMappingRequestBuilder(ElasticsearchClient client, PutMappingAction action)
-
Method Summary
Modifier and TypeMethodDescriptionsetConcreteIndex(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.elasticsearch.common.xcontent.XContentBuilder mappingBuilder)
The mapping source definition.The type of the mappings.Methods inherited from class org.elasticsearch.action.support.master.AcknowledgedRequestBuilder
setTimeout, setTimeout
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
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.
-
setType
The type of the mappings. -
setSource
public PutMappingRequestBuilder setSource(org.elasticsearch.common.xcontent.XContentBuilder mappingBuilder)The mapping source definition. -
setSource
The mapping source definition. -
setSource
public PutMappingRequestBuilder setSource(String mappingSource, org.elasticsearch.common.xcontent.XContentType xContentType)The mapping source definition. -
setSource
A specialized simplified mapping source method, takes the form of simple properties definition: ("field1", "type=string,store=true").
-