Package org.elasticsearch.client.indices
Class GetFieldMappingsRequest
java.lang.Object
org.elasticsearch.client.indices.GetFieldMappingsRequest
- All Implemented Interfaces:
Validatable
public class GetFieldMappingsRequest extends java.lang.Object implements Validatable
Request the mappings of specific fields
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GetFieldMappingsRequest() -
Method Summary
Modifier and Type Method Description java.lang.String[]fields()GetFieldMappingsRequestfields(java.lang.String... fields)booleanincludeDefaults()GetFieldMappingsRequestincludeDefaults(boolean includeDefaults)Indicates whether default mapping settings should be returnedjava.lang.String[]indices()GetFieldMappingsRequestindices(java.lang.String... indices)org.elasticsearch.action.support.IndicesOptionsindicesOptions()GetFieldMappingsRequestindicesOptions(org.elasticsearch.action.support.IndicesOptions indicesOptions)booleanlocal()Deprecated.GetFieldMappingsRequestlocal(boolean local)Deprecated.
-
Constructor Details
-
GetFieldMappingsRequest
public GetFieldMappingsRequest()
-
-
Method Details
-
local
Deprecated.Indicate whether the receiving node should operate based on local index information or forward requests, where needed, to other nodes. If running locally, request will not raise errors if running locally & missing indices. -
local
@Deprecated public boolean local()Deprecated. -
indices
-
indicesOptions
public GetFieldMappingsRequest indicesOptions(org.elasticsearch.action.support.IndicesOptions indicesOptions) -
indices
public java.lang.String[] indices() -
indicesOptions
public org.elasticsearch.action.support.IndicesOptions indicesOptions() -
fields
- Parameters:
fields- a list of fields to retrieve the mapping for
-
fields
public java.lang.String[] fields() -
includeDefaults
public boolean includeDefaults() -
includeDefaults
Indicates whether default mapping settings should be returned
-