Class FieldCapsRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<FieldCapsRequest.Builder>
org.opensearch.client.opensearch.core.FieldCapsRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<FieldCapsRequest.Builder,,FieldCapsRequest> MutableBuilder<FieldCapsRequest.Builder,,FieldCapsRequest> ObjectBuilder<FieldCapsRequest>
- Enclosing class:
FieldCapsRequest
public static class FieldCapsRequest.Builder
extends RequestBase.AbstractBuilder<FieldCapsRequest.Builder>
implements CopyableBuilder<FieldCapsRequest.Builder,FieldCapsRequest>
Builder for
FieldCapsRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal FieldCapsRequest.BuilderallowNoIndices(Boolean value) Iffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indexes.build()Builds aFieldCapsRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.final FieldCapsRequest.BuilderexpandWildcards(List<ExpandWildcard> list) Type of index that wildcard patterns can match.final FieldCapsRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Type of index that wildcard patterns can match.final FieldCapsRequest.BuilderAPI name:fieldsfinal FieldCapsRequest.BuilderAPI name:fieldsfinal FieldCapsRequest.BuilderignoreUnavailable(Boolean value) Iftrue, missing or closed indexes are not included in the response.final FieldCapsRequest.BuilderincludeUnmapped(Boolean value) Iftrue, unmapped fields are included in the response.final FieldCapsRequest.BuilderComma-separated list of data streams, indexes, and aliases used to limit the request.final FieldCapsRequest.BuilderComma-separated list of data streams, indexes, and aliases used to limit the request.final FieldCapsRequest.BuilderAPI name:index_filterfinal FieldCapsRequest.BuilderindexFilter(Query value) API name:index_filterprotected FieldCapsRequest.Builderself()Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<FieldCapsRequest.Builder,FieldCapsRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<FieldCapsRequest.Builder>
-
allowNoIndices
Iffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indexes. This behavior applies even if the request targets other open indexes. 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
@Nonnull 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
API name:fieldsAdds all elements of
listtofields. -
fields
API name:fieldsAdds one or more values to
fields. -
includeUnmapped
Iftrue, unmapped fields are included in the response.API name:
include_unmapped -
index
Comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indexes, omit this parameter or use * or_all.API name:
indexAdds all elements of
listtoindex. -
index
Comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indexes, omit this parameter or use * or_all.API name:
indexAdds one or more values to
index. -
indexFilter
API name:index_filter -
indexFilter
@Nonnull public final FieldCapsRequest.Builder indexFilter(Function<Query.Builder, ObjectBuilder<Query>> fn) API name:index_filter -
build
Builds aFieldCapsRequest.- Specified by:
buildin interfaceObjectBuilder<FieldCapsRequest>- Throws:
NullPointerException- if some of the required fields are null.
-