Class ExistsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.ExistsRequest
Checks if a document in an index exists.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<ExistsRequest,BooleanResponse, ErrorResponse> Endpoint "exists". -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringid()Required - Identifier of the document.final Stringindex()Required - Comma-separated list of data streams, indices, and aliases.static ExistsRequestfinal 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 Booleanrefresh()Iftrue, Elasticsearch refreshes all shards involved in the delete by query after the request completes.final Stringrouting()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.List of stored fields to return as part of a hit.final Longversion()Explicit version number for concurrency control.final VersionTypeSpecific version type:external,external_gte.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "exists".
-
-
Method Details
-
of
-
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 -
id
Required - Identifier of the document.API name:
id -
index
Required - Comma-separated list of data streams, indices, 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, Elasticsearch 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 -
storedFields
List of stored fields to return as part of a hit. If no fields are specified, no stored fields are included in the response. If this field is specified, the_sourceparameter defaults to false.API name:
stored_fields -
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
Specific version type:external,external_gte.API name:
version_type
-