Class ExistsSourceRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.core.ExistsSourceRequest
- All Implemented Interfaces:
ToCopyableBuilder<ExistsSourceRequest.Builder,ExistsSourceRequest>
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class ExistsSourceRequest
extends RequestBase
implements ToCopyableBuilder<ExistsSourceRequest.Builder,ExistsSourceRequest>
Returns information about whether a document source exists in an index.
-
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 Endpoint<ExistsSourceRequest, BooleanResponse, ErrorResponse> Endpoint "exists_source". -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyQueryParameters(Map<String, String> params) static ExistsSourceRequest.Builderbuilder()booleaninthashCode()final Stringid()Required - Identifier of the document.final Stringindex()Required - A comma-separated list of data streams, indexes, and aliases.static ExistsSourceRequestfinal StringSpecifies the node or shard the operation should be performed on.final Booleanrealtime()Iftrue, the request is real time as opposed to near real time.final Refreshrefresh()Iftrue, OpenSearch refreshes all shards involved in the delete by query after the request completes.routing()Target the specified primary shard.final SourceConfigParamsource()trueorfalseto return the_sourcefield or not, or a list of fields to return.A comma-separated list of source fields to exclude in the response.A comma-separated list of source fields to include in the response.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final Longversion()Explicit version number for concurrency control.final VersionTypeThe specific version type:external,external_gte.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.util.ToCopyableBuilder
copy
-
Field Details
-
_ENDPOINT
Endpoint "exists_source".
-
-
Method Details
-
of
public static ExistsSourceRequest of(Function<ExistsSourceRequest.Builder, ObjectBuilder<ExistsSourceRequest>> fn) -
id
Required - Identifier of the document.API name:
id -
index
Required - A comma-separated list of data streams, indexes, and aliases. Supports wildcards (*).API name:
index -
preference
Specifies the node or shard the operation should be performed on. Random by default.API name:
preference -
realtime
Iftrue, the request is real time as opposed to near real time.API name:
realtime -
refresh
Iftrue, OpenSearch refreshes all shards involved in the delete by query after the request completes.API name:
refresh -
routing
Target the specified primary shard.API name:
routing -
source
trueorfalseto return the_sourcefield or not, or a list of fields to return.API name:
_source -
sourceExcludes
A comma-separated list of source fields to exclude in the response.API name:
_source_excludes -
sourceIncludes
A comma-separated list of source fields to include in the response.API name:
_source_includes -
version
Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed.API name:
version -
versionType
The specific version type:external,external_gte.API name:
version_type -
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ExistsSourceRequest.Builder,ExistsSourceRequest> - Returns:
- a new builder instance.
-
builder
-
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-