DocumentAdd ​Document​Add

yaml
type: "io.kestra.plugin.meilisearch.documentadd"
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