DocumentAdd
Add a document to Meilisearch.
Add one or multiple documents to a Meilisearch DB.
yaml
type: "io.kestra.plugin.meilisearch.DocumentAdd"
Add Document to Meilisearch
yaml
id: meilisearch_add_flow
namespace: company.team
variables:
host: http://172.18.0.3:7700/
tasks:
- id: http_download
type: io.kestra.plugin.core.http.Download
uri: https://pokeapi.co/api/v2/pokemon/jigglypuff
- id: to_ion
type: io.kestra.plugin.serdes.json.JsonToIon
from: "{{ outputs.http_download.uri }}"
- id: add
type: io.kestra.plugin.meilisearch.DocumentAdd
index: "pokemon"
url: "{{ vars.host }}"
key: "{{ secret('MEILISEARCH_MASTER_KEY') }}"
data:
fromURI: "{{ outputs.to_ion.uri }}"
Dynamic
NO
Dynamic
YES
Index
Index of the collection you want to add documents to
Dynamic
YES
Meilisearch connection key.
Dynamic
YES
Meilisearch connection URL.
SubType object
Dynamic
YES
An array of objects (which is equivalent to a list of maps)
Dynamic
YES
An object (which is equivalent to a map)
Dynamic
NO
A Kestra internal storage URI