All Implemented Interfaces:
IndicesRequest, IndicesRequest.Replaceable, AckedRequest, Writeable, RefCounted, TaskAwareRequest

public class PutMappingRequest extends AcknowledgedRequest<PutMappingRequest> implements IndicesRequest.Replaceable
Puts mapping definition into one or more indices. Best created with Requests.putMappingRequest(String...).

If the mappings already exists, the new mappings will be merged with the new one. If there are elements that can't be merged are detected, the request will be rejected.

See Also:
  • Constructor Details

    • PutMappingRequest

      public PutMappingRequest(StreamInput in) throws IOException
      Throws:
      IOException
    • PutMappingRequest

      public PutMappingRequest()
    • PutMappingRequest

      public PutMappingRequest(String... indices)
      Constructs a new put mapping request against one or more indices. If nothing is set then it will be executed against all indices.
  • Method Details