
Meilisearch FacetSearch
CertifiedSearch facets in Meilisearch
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.FacetSearchExamples
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
facetName *string
Facet name
Facet attribute configured as filterable (e.g., facetName "genre" on a film index).
index *string
Index
Name of the Meilisearch index to search.
key *string
Meilisearch connection key
url *string
Meilisearch connection URL
facetQuery string
Facet query
Query string applied to the specified facet; optional.
filters array
SubTypestring
Default
[]Filters
List of Meilisearch filters applied to the facet search; defaults to an empty list.
Outputs
totalHits integer
Total hits
Number of facet hits returned by the request.
uri string
Format
uriOutput URI
URI in Kestra storage to the .ion file with facet search results.