Class ExistsRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.ExistsRequest
Returns information about whether a document exists in an index.
- 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 - The document IDfinal Stringindex()Required - The name of the indexstatic ExistsRequestfinal StringSpecify the node or shard the operation should be performed on (default: random)final Booleanrealtime()Specify whether to perform the operation in realtime or search modefinal Booleanrefresh()Refresh the shard containing the document before performing the operationfinal Stringrouting()Specific routing valuefinal SourceConfigParamsource()True or false to return the _source field or not, or a list of fields to returnA list of fields to exclude from the returned _source fieldA list of fields to extract and return from the _source fieldA comma-separated list of stored fields to return in the responsefinal Stringtype()The type of the document (use_allto fetch the first document matching the ID across all types)final Longversion()Explicit version number for concurrency controlfinal VersionTypeSpecific version typeMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "exists".
-
-
Method Details
-
of
-
source
True or false to return the _source field or not, or a list of fields to returnAPI name:
_source -
sourceExcludes
A list of fields to exclude from the returned _source fieldAPI name:
_source_excludes -
sourceIncludes
A list of fields to extract and return from the _source fieldAPI name:
_source_includes -
id
Required - The document IDAPI name:
id -
index
Required - The name of the indexAPI name:
index -
preference
Specify the node or shard the operation should be performed on (default: random)API name:
preference -
realtime
Specify whether to perform the operation in realtime or search modeAPI name:
realtime -
refresh
Refresh the shard containing the document before performing the operationAPI name:
refresh -
routing
Specific routing valueAPI name:
routing -
storedFields
A comma-separated list of stored fields to return in the responseAPI name:
stored_fields -
type
The type of the document (use_allto fetch the first document matching the ID across all types)API name:
type -
version
Explicit version number for concurrency controlAPI name:
version -
versionType
Specific version typeAPI name:
version_type
-