The component definition and tasks are defined in the definition.yaml and tasks.yaml files respectively.
Setup
In order to communicate with Elastic, the following connection details need to be
provided. You may specify them directly in a pipeline recipe as key-value pairs
within the component's setup block, or you can create a Connection from
the Integration Settings
page and reference the whole setup as setup: ${connection.<my-connection-id>}.
Field
Field ID
Type
Note
Cloud ID (required)
cloud-id
string
Fill in the Cloud ID for the Elasticsearch instance.
API Key (required)
api-key
string
Fill in the API key for the Elasticsearch instance (please use encoded one).
Supported Tasks
Search
Search for documents in Elasticsearch, support full text search
Input
Field ID
Type
Description
Task ID (required)
task
string
TASK_SEARCH
Index Name (required)
index-name
string
Name of the Elasticsearch index.
ID
id
string
The ID of the document.
Query
query
string
Full text search query for search task, query will be prioritised over filter if both are provided, if both query and filter are not provided, all documents will be selected.
Filter
filter
object
The query dsl filter which starts with "query" field, please refer to here.
Filter SQL
filter-sql
string
The filter to be applied to the data with SQL syntax, which starts with WHERE clause, empty for no filter.
Size
size
integer
Number of documents to return. If empty then all documents will be returned.
Fields
fields
array[string]
The fields to return in the documents. If empty then all fields will be returned.
Minimum Score
min-score
number
Minimum score to consider for search results. If empty then no minimum score will be considered.
Full text search query for update task, query will be prioritised over filter if both are provided, if both query and filter are not provided, all documents will be selected.
Filter
filter
object
The query dsl filter which starts with "query" field, please refer to here.
Filter SQL
filter-sql
string
The filter to be applied to the data with SQL syntax, which starts with WHERE clause, empty for no filter.
Update (required)
update-data
object
Update data.
Output
Field ID
Type
Description
Status
status
string
Update operation status.
Delete
Delete documents from Elasticsearch
Input
Field ID
Type
Description
Task ID (required)
task
string
TASK_DELETE
Index Name (required)
index-name
string
Name of the Elasticsearch index.
ID
id
string
The ID of the document.
Query
query
string
Full text search query for delete task, query will be prioritised over filter if both are provided, if both query and filter are not provided, all documents will be selected.
Filter
filter
object
The query dsl filter which starts with "query" field, please refer to here.
Filter SQL
filter-sql
string
The filter to be applied to the data with SQL syntax, which starts with WHERE clause, empty for no filter.
Output
Field ID
Type
Description
Status
status
string
Delete operation status.
Create Index
Create an index in Elasticsearch
Input
Field ID
Type
Description
Task ID (required)
task
string
TASK_CREATE_INDEX
Index Name (required)
index-name
string
Name of the Elasticsearch index.
Mappings
mappings
object
Index mappings which starts with {"mappings":{"properties"}} field, please refer to here for vector search and here for other mappings.