Class FieldCapsRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.core.FieldCapsRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<FieldCapsRequest.Builder,FieldCapsRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class FieldCapsRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<FieldCapsRequest.Builder,FieldCapsRequest>
Returns the information about the capabilities of fields among multiple indexes.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<FieldCapsRequest> Json deserializer forFieldCapsRequeststatic final Endpoint<FieldCapsRequest, FieldCapsResponse, ErrorResponse> Endpoint "field_caps". -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanIffalse, the request returns an error if any wildcard expression, index alias, or_allvalue targets only missing or closed indexes.protected voidapplyQueryParameters(Map<String, String> params) static FieldCapsRequest.Builderbuilder()booleanfinal List<ExpandWildcard> Type of index that wildcard patterns can match.fields()API name:fieldsinthashCode()final BooleanIftrue, missing or closed indexes are not included in the response.final BooleanIftrue, unmapped fields are included in the response.index()Comma-separated list of data streams, indexes, and aliases used to limit the request.final QueryAPI name:index_filterstatic FieldCapsRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forFieldCapsRequest -
_ENDPOINT
Endpoint "field_caps".
-
-
Method Details
-
of
public static FieldCapsRequest of(Function<FieldCapsRequest.Builder, ObjectBuilder<FieldCapsRequest>> fn) -
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_wildcards -
fields
API name: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:
index -
indexFilter
API name:index_filter -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<FieldCapsRequest.Builder,FieldCapsRequest> - Returns:
- a new builder instance.
-
builder
-
setupFieldCapsRequestDeserializer
protected static void setupFieldCapsRequestDeserializer(ObjectDeserializer<FieldCapsRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-