meilisearch / strapi-plugin-meilisearch

A strapi plugin to add your collections to Meilisearch
https://meilisearch.com
MIT License
223 stars 58 forks source link

Can't filter by locale. #891

Closed tshmieldev closed 8 months ago

tshmieldev commented 8 months ago

Description Locale field is not filterable, even if you add it to filterable fields.

Expected behavior You should be able to filter through it normally.

Current behavior You cannot: MeiliSearchApiError: Attribute locale is not filterable. Available filterable attributes are: ...

Screenshots or Logs image image image

Environment (please complete the following information):

Why is this an issue? Because when I add a locale version of an entry it gets added to meilisearch. Then, I have duplicates in search. I don't want that so I want to filter do default locale (that would work for me)

curquiza commented 8 months ago

Thanks @tshmieldev for the report, really apprecated

Any PR from anyone is welcome ❤️

nitintecg commented 8 months ago

I tried this issue and found after adding locale attribute to filterableAttributes array then you add to click Update button in Meilisearch plugin view then you should be able to do run filter query with no errors.

Screenshot 2024-03-25 at 8 53 52 PM
curquiza commented 8 months ago

Thank you @nitintecg

@tshmieldev do you still have the error?

tshmieldev commented 8 months ago

@curquiza Thank you for mentioning me, I didn't see the proposed solution, it seems promising, I will try it in a few hours

brunoocasali commented 8 months ago

I will close this issue, but let me know if you still need some help :)