Class FieldCapsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FieldCapsRequest.Builder>
co.elastic.clients.elasticsearch.core.FieldCapsRequest.Builder
- All Implemented Interfaces:
WithJson<FieldCapsRequest.Builder>,ObjectBuilder<FieldCapsRequest>
- Enclosing class:
- FieldCapsRequest
public static class FieldCapsRequest.Builder extends WithJsonObjectBuilderBase<FieldCapsRequest.Builder> implements ObjectBuilder<FieldCapsRequest>
Builder for
FieldCapsRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description FieldCapsRequest.BuilderallowNoIndices(java.lang.Boolean value)Whether to ignore if a wildcard indices expression resolves into no concrete indices.FieldCapsRequestbuild()Builds aFieldCapsRequest.FieldCapsRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values)Whether to expand wildcard expression to concrete indices that are open, closed or both.FieldCapsRequest.BuilderexpandWildcards(java.util.List<ExpandWildcard> list)Whether to expand wildcard expression to concrete indices that are open, closed or both.FieldCapsRequest.Builderfields(java.lang.String value, java.lang.String... values)Required - A comma-separated list of field namesFieldCapsRequest.Builderfields(java.util.List<java.lang.String> list)Required - 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, java.lang.String... values)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> list)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.BuilderruntimeMappings(java.lang.String key, RuntimeField value)API name:runtime_mappingsFieldCapsRequest.BuilderruntimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)API name:runtime_mappingsFieldCapsRequest.BuilderruntimeMappings(java.util.Map<java.lang.String,RuntimeField> map)API name:runtime_mappingsprotected FieldCapsRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final FieldCapsRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values)Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
fields
Required - A comma-separated list of field namesAPI name:
fieldsAdds all elements of
listtofields. -
fields
Required - A comma-separated list of field namesAPI name:
fieldsAdds one or more values to
fields. -
includeUnmapped
Indicates whether unmapped fields should be included in the response.API name:
include_unmapped -
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
indexAdds all elements of
listtoindex. -
index
A comma-separated list of index names; use_allor empty string to perform the operation on all indicesAPI name:
indexAdds one or more values to
index. -
indexFilter
API name:index_filter -
indexFilter
public final FieldCapsRequest.Builder indexFilter(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)API name:index_filter -
runtimeMappings
public final FieldCapsRequest.Builder runtimeMappings(java.util.Map<java.lang.String,RuntimeField> map)API name:runtime_mappingsAdds all entries of
maptoruntimeMappings. -
runtimeMappings
API name:runtime_mappingsAdds an entry to
runtimeMappings. -
runtimeMappings
public final FieldCapsRequest.Builder runtimeMappings(java.lang.String key, java.util.function.Function<RuntimeField.Builder,ObjectBuilder<RuntimeField>> fn)API name:runtime_mappingsAdds an entry to
runtimeMappingsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<FieldCapsRequest.Builder>
-
build
Builds aFieldCapsRequest.- Specified by:
buildin interfaceObjectBuilder<FieldCapsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-