FacetSearch
FacetSearch
Perform a facet search from a Meilisearch DB. WARNING: make sure to set the filterable attributes before.
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.search_documents.uri }}"
Dynamic YES
Facet name
Name of the facet you wan to perform a search on (ex: facetName: "genre" on a film collection)
Dynamic YES
Index
Index of the collection you want to search in
Dynamic YES
Meilisearch connection key.
Dynamic YES
Meilisearch connection URL.
Dynamic YES
Facet query
Query that will be used on the specified facetName
SubType string
Dynamic YES
Default []
Filters
Additional filters to apply to your facet search
Hits number
Number of items hit by the facet search request
Format uri
URI to output
Results URI to an Amazon .ion file