Unable to filter facet list

If I query for the list of available facets I properly get the right results:

curl --location --request POST ‘https://omissis/facets/ExportsToFilter.it.lvl0/query’
–header ‘x-algolia-api-key: omissis
–header ‘x-algolia-application-id: omissis
–header ‘Content-Type: text/plain’
–data-raw ‘{“facetQuery”:"",“filters”:"(ProductType: ‘’‘wine’’’)",“maxFacetHits”:100}’

results:

{“facetHits”:[{“value”:“GERMANIA”,“highlighted”:“GERMANIA”,“count”:8493},{“value”:“STATI UNITI”,“highlighted”:“STATI UNITI”,“count”:8410}, … }

But when I do the same query filtering the facets, I get no results:

curl --location --request POST ‘https://omissis/facets/ExportsToFilter.it.lvl0/query’
–header ‘x-algolia-api-key: omissis
–header ‘x-algolia-application-id: omissis
–header ‘Content-Type: text/plain’
–data-raw ‘{“facetQuery”:“GERM”,“filters”:"(ProductType: ‘’‘wine’’’)",“maxFacetHits”:100}’

Thanks

Hello,

Can you confirm you have declared your facet ExportsToFilter.it.lvl0 as searchable according to the documentation here: https://www.algolia.com/doc/api-reference/api-methods/search-for-facet-values/#about-this-method

Cheers.

Yes, I do confirm
image

Could you send us over your application ID and grant us read access to your account so that we can reproduce and assist you?

support@algolia.com

Ok, I did it. Thanks