
OpenSearch Search
CertifiedExecute an OpenSearch search
OpenSearch Search
Execute an OpenSearch search
Runs a search request and either returns rows, the first row, or stores results to Internal Storage; default fetchType is FETCH.
type: io.kestra.plugin.opensearch.SearchExamples
id: opensearch_search
namespace: company.team
tasks:
- id: search
type: io.kestra.plugin.opensearch.Search
connection:
hosts:
- "http://localhost:9200"
indexes:
- "my_index"
request:
query:
term:
name:
value: 'john'
Properties
connection *
Configure OpenSearch connection
Hosts, auth headers, and TLS options reused by every task invocation.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150contentType string
JSONCBORJSONSMILEYAMLPayload content type
Format used to parse string requests; defaults to JSON.
fetchType string
FETCHSTOREFETCHFETCH_ONENONEResult handling strategy
FETCH returns all rows, FETCH_ONE returns the first row, STORE saves rows to Internal Storage, NONE skips output; defaults to FETCH.
indexes array
Target indices
Optional list of indices; defaults to all when empty.
request object
Search request payload
JSON string or Map rendered then parsed into an OpenSearch SearchRequest.
routing string
Shard routing key
Hashes routing using this value instead of the document id to colocate related records.
Outputs
row object
First row fetched
Populated when fetchType is FETCH_ONE.
rows array
All fetched rows
Populated when fetchType is FETCH.
size integer
Number of rows fetched
total integer
Total hits without pagination
uri string
uriURI of stored data
Populated when fetchType is STORE.