Class FieldCapsRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.core.FieldCapsRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<FieldCapsRequest>
- Enclosing class:
- FieldCapsRequest
public static class FieldCapsRequest.Builder extends ObjectBuilderBase 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)If false, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indices.FieldCapsRequestbuild()Builds aFieldCapsRequest.FieldCapsRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values)Type of index that wildcard patterns can match.FieldCapsRequest.BuilderexpandWildcards(java.util.List<ExpandWildcard> list)Type of index that wildcard patterns can match.FieldCapsRequest.Builderfields(java.lang.String value, java.lang.String... values)Comma-separated list of fields to retrieve capabilities for.FieldCapsRequest.Builderfields(java.util.List<java.lang.String> list)Comma-separated list of fields to retrieve capabilities for.FieldCapsRequest.BuilderignoreUnavailable(java.lang.Boolean value)Iftrue, missing or closed indices are not included in the response.FieldCapsRequest.BuilderincludeUnmapped(java.lang.Boolean value)If true, unmapped fields are included in the response.FieldCapsRequest.Builderindex(java.lang.String value, java.lang.String... values)Comma-separated list of data streams, indices, and aliases used to limit the request.FieldCapsRequest.Builderindex(java.util.List<java.lang.String> list)Comma-separated list of data streams, indices, and aliases used to limit the request.FieldCapsRequest.BuilderindexFilter(Query value)Allows to filter indices if the provided query rewrites to match_none on every shard.FieldCapsRequest.BuilderindexFilter(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)Allows to filter indices if the provided query rewrites to match_none on every shard.FieldCapsRequest.BuilderruntimeMappings(java.lang.String key, java.util.List<RuntimeField> value)Defines ad-hoc runtime fields in the request similar to the way it is done in search requests.FieldCapsRequest.BuilderruntimeMappings(java.util.Map<java.lang.String,java.util.List<RuntimeField>> map)Defines ad-hoc runtime fields in the request similar to the way it is done in search requests.Methods 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
If false, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targetingfoo*,bar*returns an error if an index starts with foo but no index starts with bar.API name:
allow_no_indices -
expandWildcards
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final FieldCapsRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values)Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values, such asopen,hidden.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
fields
Comma-separated list of fields to retrieve capabilities for. Wildcard (*) expressions are supported.API name:
fieldsAdds all elements of
listtofields. -
fields
Comma-separated list of fields to retrieve capabilities for. Wildcard (*) expressions are supported.API name:
fieldsAdds one or more values to
fields. -
includeUnmapped
If true, unmapped fields are included in the response.API name:
include_unmapped -
index
Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all.API name:
indexAdds all elements of
listtoindex. -
index
Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all.API name:
indexAdds one or more values to
index. -
indexFilter
Allows to filter indices if the provided query rewrites to match_none on every shard.API name:
index_filter -
indexFilter
public final FieldCapsRequest.Builder indexFilter(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)Allows to filter indices if the provided query rewrites to match_none on every shard.API name:
index_filter -
runtimeMappings
public final FieldCapsRequest.Builder runtimeMappings(java.util.Map<java.lang.String,java.util.List<RuntimeField>> map)Defines ad-hoc runtime fields in the request similar to the way it is done in search requests. These fields exist only as part of the query and take precedence over fields defined with the same name in the index mappings.API name:
runtime_mappingsAdds all entries of
maptoruntimeMappings. -
runtimeMappings
public final FieldCapsRequest.Builder runtimeMappings(java.lang.String key, java.util.List<RuntimeField> value)Defines ad-hoc runtime fields in the request similar to the way it is done in search requests. These fields exist only as part of the query and take precedence over fields defined with the same name in the index mappings.API name:
runtime_mappingsAdds an entry to
runtimeMappings. -
build
Builds aFieldCapsRequest.- Specified by:
buildin interfaceObjectBuilder<FieldCapsRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-