DocumentAdd DocumentAdd

yaml
type: "io.kestra.plugin.meilisearch.DocumentAdd"

Add Document

Add one or multiple documents to a Meilisearch DB

Examples

Add Document to Meilisearch

yaml
id: "document_add"
type: "io.kestra.plugin.meilisearch.DocumentAdd"
    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: "MASTER_KEY"
        data: "{{ outputs.to_ion.uri }}"

Properties

data

  • Type: Map_
  • Dynamic:
  • Required: ✔️

index

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

Index

Index of the collection you want to add documents to

key

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

Meilisearch connection key.

url

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

Meilisearch connection URL.

Outputs

Definitions

io.kestra.core.models.property.Data_java.util.Map_

Properties

fromList
  • Type: array
  • SubType: object
  • Dynamic: ✔️
  • Required:

An array of objects (which is equivalent to a list of maps)

fromMap
  • Type: object
  • Dynamic: ✔️
  • Required:

An object (which is equivalent to a map)

fromURI
  • Type:
    • string
    • string
  • Dynamic: ✔️
  • Required:

Was this page helpful?