
Elasticsearch Get
CertifiedRetrieve Elasticsearch document
Elasticsearch Get
Certified
Retrieve Elasticsearch document
Fetches a single document by index and id. Optionally enforces a version match and can fail when the document is missing.
yaml
type: io.kestra.plugin.elasticsearch.GetExamples
yaml
id: elasticsearch_get
namespace: company.team
tasks:
- id: get
type: io.kestra.plugin.elasticsearch.Get
connection:
hosts:
- "http://localhost:9200"
index: "my_index"
key: "my_id"
Properties
connection *
Elasticsearch connection
Connection settings shared by tasks; hosts are required.
Definitions
index *string
The Elasticsearch index
key *string
Document id
docVersion integerstring
Expected version
GET succeeds only if the document version matches this value.
errorOnMissing booleanstring
Default
falseFail when missing
If true, throws when the document is not found; default false.
routing string
Custom shard routing
Optional routing key hashed to pick the shard instead of using the document id.
Outputs
row object
Retrieved document