类 PutMappingRequest

java.lang.Object
org.easysearch.client.TimedRequest
org.easysearch.client.indices.PutMappingRequest
所有已实现的接口:
org.easysearch.action.IndicesRequest, Validatable, org.easysearch.common.xcontent.ToXContent, org.easysearch.common.xcontent.ToXContentObject

public class PutMappingRequest
extends TimedRequest
implements org.easysearch.action.IndicesRequest, org.easysearch.common.xcontent.ToXContentObject
Put a mapping definition into one or more indices. If an index already contains mappings, the new mappings will be merged with the existing one. If there are elements that cannot be merged, the request will be rejected.
  • 嵌套类概要

    从接口继承的嵌套类/接口 org.easysearch.action.IndicesRequest

    org.easysearch.action.IndicesRequest.Replaceable

    从接口继承的嵌套类/接口 org.easysearch.common.xcontent.ToXContent

    org.easysearch.common.xcontent.ToXContent.DelegatingMapParams, org.easysearch.common.xcontent.ToXContent.MapParams, org.easysearch.common.xcontent.ToXContent.Params
  • 字段概要

    从类继承的字段 org.easysearch.client.TimedRequest

    DEFAULT_ACK_TIMEOUT, DEFAULT_MASTER_NODE_TIMEOUT

    从接口继承的字段 org.easysearch.common.xcontent.ToXContent

    EMPTY_PARAMS

    从接口继承的字段 org.easysearch.client.Validatable

    EMPTY
  • 构造器概要

    构造器
    构造器 说明
    PutMappingRequest​(java.lang.String... indices)
    Constructs a new put mapping request against one or more indices.
  • 方法概要

    修饰符和类型 方法 说明
    java.lang.String[] indices()
    The indices into which the mappings will be put.
    org.easysearch.action.support.IndicesOptions indicesOptions()  
    PutMappingRequest indicesOptions​(org.easysearch.action.support.IndicesOptions indicesOptions)  
    org.easysearch.common.bytes.BytesReference source()
    The mapping source definition.
    PutMappingRequest source​(java.lang.String mappingSource, org.easysearch.common.xcontent.XContentType xContentType)
    The mapping source definition.
    PutMappingRequest source​(java.util.Map<java.lang.String,​?> mappingSource)
    The mapping source definition.
    PutMappingRequest source​(org.easysearch.common.bytes.BytesReference source, org.easysearch.common.xcontent.XContentType xContentType)
    The mapping source definition.
    PutMappingRequest source​(org.easysearch.common.xcontent.XContentBuilder builder)
    The mapping source definition.
    org.easysearch.common.xcontent.XContentBuilder toXContent​(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)  
    org.easysearch.common.xcontent.XContentType xContentType()
    The XContentType of the mapping source.

    从类继承的方法 org.easysearch.client.TimedRequest

    masterNodeTimeout, setMasterTimeout, setTimeout, timeout

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 org.easysearch.action.IndicesRequest

    includeDataStreams

    从接口继承的方法 org.easysearch.common.xcontent.ToXContentObject

    isFragment

    从接口继承的方法 org.easysearch.client.Validatable

    validate
  • 构造器详细资料

    • PutMappingRequest

      public PutMappingRequest​(java.lang.String... indices)
      Constructs a new put mapping request against one or more indices. If no indices are provided then it will be executed against all indices.
  • 方法详细资料

    • indices

      public java.lang.String[] indices()
      The indices into which the mappings will be put.
      指定者:
      indices 在接口中 org.easysearch.action.IndicesRequest
    • indicesOptions

      public org.easysearch.action.support.IndicesOptions indicesOptions()
      指定者:
      indicesOptions 在接口中 org.easysearch.action.IndicesRequest
    • indicesOptions

      public PutMappingRequest indicesOptions​(org.easysearch.action.support.IndicesOptions indicesOptions)
    • source

      public org.easysearch.common.bytes.BytesReference source()
      The mapping source definition.
    • xContentType

      public org.easysearch.common.xcontent.XContentType xContentType()
      The XContentType of the mapping source.
    • source

      public PutMappingRequest source​(java.util.Map<java.lang.String,​?> mappingSource)
      The mapping source definition. Note that the definition should *not* be nested under a type name.
    • source

      public PutMappingRequest source​(java.lang.String mappingSource, org.easysearch.common.xcontent.XContentType xContentType)
      The mapping source definition. Note that the definition should *not* be nested under a type name.
    • source

      public PutMappingRequest source​(org.easysearch.common.xcontent.XContentBuilder builder)
      The mapping source definition. Note that the definition should *not* be nested under a type name.
    • source

      public PutMappingRequest source​(org.easysearch.common.bytes.BytesReference source, org.easysearch.common.xcontent.XContentType xContentType)
      The mapping source definition. Note that the definition should *not* be nested under a type name.
    • toXContent

      public org.easysearch.common.xcontent.XContentBuilder toXContent​(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      指定者:
      toXContent 在接口中 org.easysearch.common.xcontent.ToXContent
      抛出:
      java.io.IOException