-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Currently, i'm working with Nuxt and i'm trying to implement algolia with this library but I came accross an issue with it.
Even when I configured everything like the algolia docs mentioned I can't mimic the same behavior related to the filters.
Let me explain it :
I made this :
const { data } = await useAsyncAlgoliaSearch({ indexName: config.public.algoliaIndexMain, query: query.value, requestOptions: { facets: ['*'], facetFilters: [ ...categoriesFacetsFilter.value, ...attributesFacetsFilter.value.map((val) => val) ], page: pagination.currentPage } })
On it I load data from an Index and preload the facets in order to use them as a filters, but when I select one options, that refresh the entire facets lists unlike algolia that if you select an facts attribute, all the values keep until you select another facets. I was looking into it.
For example, I have a facets call "Brand" and when I load the values of that facets return ['Harley-Davidson','Honda','Ducati'] If I select 'Harley-Davidson', that should filter the result by updating the list of hits and the list of facets, but keeping the "Color" facets values as the algolia dashboard works, showing Honda and Ducati also.
Has anyone came across to this same issue?
