Meilisearch FacetSearch

Meilisearch FacetSearch

Certified

Search facets in Meilisearch

Runs a facet search on a Meilisearch index and writes the facet hits to an .ion file in Kestra storage. Facet attributes must be configured as filterable in the index settings; filters default to none.

yaml
type: io.kestra.plugin.meilisearch.FacetSearch

Sample facet search

yaml
id: meilisearch_facet_search_flow
namespace: company.team

variables:
  index: movies
  facetQuery: fiction
  facetName: genre
  host: http://172.18.0.3:7700/

tasks:
  - id: facet_search_documents
    type: io.kestra.plugin.meilisearch.FacetSearch
    index: "{{ vars.index }}"
    facetQuery: "{{ vars.facetQuery }}"
    facetName: "{{ vars.facetName }}"
    filters:
      - "rating > 3"
    url: "{{ vars.host }}"
    key: "{{ secret('MEILISEARCH_MASTER_KEY') }}"

  - id: to_json
    type: io.kestra.plugin.serdes.json.IonToJson
    from: "{{ outputs.facet_search_documents.uri }}"
Properties

Facet name

Facet attribute configured as filterable (e.g., facetName "genre" on a film index).

Index

Name of the Meilisearch index to search.

Meilisearch connection key

Meilisearch connection URL

Facet query

Query string applied to the specified facet; optional.

SubTypestring
Default[]

Filters

List of Meilisearch filters applied to the facet search; defaults to an empty list.

Total hits

Number of facet hits returned by the request.

Formaturi

Output URI

URI in Kestra storage to the .ion file with facet search results.