Class GetRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.GetRequest
Returns a document.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <TDocument>
Endpoint<GetRequest,GetResponse<TDocument>, ErrorResponse> createGetEndpoint
(JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "get
" endpoint.final Boolean
Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance.final String
id()
Required - Unique identifier of the document.final String
index()
Required - Name of the index that contains the document.static GetRequest
final String
Specifies the node or shard the operation should be performed on.final Boolean
realtime()
Iftrue
, the request is real-time as opposed to near-real-time.final Boolean
refresh()
If true, Elasticsearch refreshes the affected shards to make this operation visible to search.final String
routing()
Target the specified primary shard.final SourceConfigParam
source()
True or false to return the _source field 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 Long
version()
Explicit version number for concurrency control.final VersionType
Specific version type: internal, external, external_gte.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "get
".
-
-
Method Details
-
of
-
source
True or false to return the _source field 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
-
forceSyntheticSource
Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index.API name:
force_synthetic_source
-
id
Required - Unique identifier of the document.API name:
id
-
index
Required - Name of the index that contains the document.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
If true, Elasticsearch refreshes the affected shards to make this operation visible to search. If false, do nothing with refreshes.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_source
parameter 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: internal, external, external_gte.API name:
version_type
-
createGetEndpoint
public static <TDocument> Endpoint<GetRequest,GetResponse<TDocument>, createGetEndpointErrorResponse> (JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "get
" endpoint.
-