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