Class FieldCapsRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch._core.FieldCapsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<FieldCapsRequest>
- Enclosing class:
- FieldCapsRequest
public static class FieldCapsRequest.Builder extends java.lang.Object implements ObjectBuilder<FieldCapsRequest>
Builder for
FieldCapsRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description FieldCapsRequest.BuilderaddExpandWildcards(ExpandWildcardOptions value)Add a value toexpandWildcards(List), creating the list if needed.FieldCapsRequest.BuilderaddFields(java.lang.String value)Add a value tofields(List), creating the list if needed.FieldCapsRequest.BuilderaddIndex(java.lang.String value)Add a value toindex(List), creating the list if needed.FieldCapsRequest.BuilderallowNoIndices(java.lang.Boolean value)Whether to ignore if a wildcard indices expression resolves into no concrete indices.FieldCapsRequestbuild()Builds aFieldCapsRequest.FieldCapsRequest.BuilderexpandWildcards(ExpandWildcardOptions... value)Whether to expand wildcard expression to concrete indices that are open, closed or both.FieldCapsRequest.BuilderexpandWildcards(java.util.List<ExpandWildcardOptions> value)Whether to expand wildcard expression to concrete indices that are open, closed or both.FieldCapsRequest.Builderfields(java.lang.String... value)A comma-separated list of field namesFieldCapsRequest.Builderfields(java.util.List<java.lang.String> value)A comma-separated list of field namesFieldCapsRequest.BuilderignoreUnavailable(java.lang.Boolean value)Whether specified concrete indices should be ignored when unavailable (missing or closed)FieldCapsRequest.BuilderincludeUnmapped(java.lang.Boolean value)Indicates whether unmapped fields should be included in the response.FieldCapsRequest.Builderindex(java.lang.String... value)A comma-separated list of index names; use_allor empty string to perform the operation on all indicesFieldCapsRequest.Builderindex(java.util.List<java.lang.String> value)A comma-separated list of index names; use_allor empty string to perform the operation on all indicesFieldCapsRequest.BuilderindexFilter(Query value)API name:index_filterFieldCapsRequest.BuilderindexFilter(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:index_filterFieldCapsRequest.BuilderputRuntimeMappings(java.lang.String key, RuntimeField value)Add a key/value toruntimeMappings(Map), creating the map if needed.FieldCapsRequest.BuilderputRuntimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)Add a key/value toruntimeMappings(Map), creating the map if needed.FieldCapsRequest.BuilderruntimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)SetruntimeMappings(Map)to a singleton map.FieldCapsRequest.BuilderruntimeMappings(java.util.Map<java.lang.String,RuntimeField> value)API name:runtime_mappingsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
index -
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
index -
addIndex
Add a value toindex(List), creating the list if needed. -
allowNoIndices
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_allstring or when no indices have been specified)API name:
allow_no_indices -
expandWildcards
public FieldCapsRequest.Builder expandWildcards(@Nullable java.util.List<ExpandWildcardOptions> value)Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards -
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards -
addExpandWildcards
Add a value toexpandWildcards(List), creating the list if needed. -
fields
A comma-separated list of field namesAPI name:
fields -
fields
A comma-separated list of field namesAPI name:
fields -
addFields
Add a value tofields(List), creating the list if needed. -
includeUnmapped
Indicates whether unmapped fields should be included in the response.API name:
include_unmapped -
indexFilter
API name:index_filter -
indexFilter
public FieldCapsRequest.Builder indexFilter(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:index_filter -
runtimeMappings
public FieldCapsRequest.Builder runtimeMappings(@Nullable java.util.Map<java.lang.String,RuntimeField> value)API name:runtime_mappings -
putRuntimeMappings
Add a key/value toruntimeMappings(Map), creating the map if needed. -
runtimeMappings
public FieldCapsRequest.Builder runtimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)SetruntimeMappings(Map)to a singleton map. -
putRuntimeMappings
public FieldCapsRequest.Builder putRuntimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)Add a key/value toruntimeMappings(Map), creating the map if needed. -
build
Builds aFieldCapsRequest.- Specified by:
buildin interfaceObjectBuilder<FieldCapsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-