DocumentAdd
Add a document to Meilisearch.
Add one or multiple documents to a Meilisearch DB.
yaml
type: "io.kestra.plugin.meilisearch.DocumentAdd"
Examples
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') }}"
from: "{{ outputs.to_ion.uri }}"
Properties
from *Requiredstringarrayobject
Structured data items, either as a map, a list of map, a URI, or a JSON string.
Structured data items can be defined in the following ways:
- A single item as a map (a document).
- A list of items as a list of maps (a list of documents).
- A URI, supported schemes are
kestra
for internal storage files,file
for host local files, andnsfile
for namespace files. - A JSON String that will then be serialized either as a single item or a list of items.
index *Requiredstring
Index
Index of the collection you want to add documents to
key *Requiredstring
Meilisearch connection key.
url *Requiredstring
Meilisearch connection URL.