Closed agracia-foticos closed 1 year ago
Hey @agracia-foticos
To use filters, you should be using requestOptions
-> https://github.com/nuxt-modules/algolia/blob/03438a1f36d74cbc8d6746d2fdcabffcdc9e3c49/src/runtime/composables/useAlgoliaSearch.ts#L27
So basically, instead of search({ query: input_search.value, filters: 'domain_list:domain.es'})
Go with search({ query: input_search.value, requestOptions: { filters: 'domain_list:domain.es' }})
Let me know if it works :)
WORKS!!! Thankss!!!!
Version
Linux
v18.11.0
3.0.0-rc.12
0.6.0
npm@8.19.2
vite
srcDir
,modules
,compilerOptions
,vue
,vite
,telemetry
,algolia
,head
,auth
,css
,build
,runtimeConfig
genesis-design-system/nuxt
,@nuxtjs/tailwindcss@5.3.5
,@nuxtjs/algolia@1.1.4
,@nuxtjs-alt/auth@2.0.29
,@nuxtjs-alt/http@1.4.2
,@nuxtjs/device@3.0.0
,unplugin-icons/nuxt
,@pinia/nuxt@0.4.3
,@nuxtjs/i18n@8.0.0-beta.2
-
Reproduction Link
I am trying to do a search with filters, but the filters parameter is not getting it for me
watch(() => input_search.value, () => search({ query: input_search.value, filters: 'domain_list:domain.es'}));
Steps to reproduce
What is Expected?
What is actually happening?