
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 *RequiredNon-dynamic
Configure OpenSearch connection
Hosts, auth headers, and TLS options reused by every task invocation.
contentType 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.