Antoine Kurka
Antoine Kurka

Reputation: 322

How to filter on an array in meilisearch?

I'm using Meilisearch with Laravel Scout on Laravel 10.

In my index, I store an array of denied_categories as an array of integers which are ids of categories like this :

Meilisearch screenshot


In my frontend I would like to filter with this parameter by sending an array of integers and do not display the items which have one or more id in common.

I was thinking about storing theses ids as a chain of characters separated by a comma and use a regex but Meilisearch doesn't provide this.

I tried to use the IN filter but it works the other way.

Do someone have any idea on how to do it ?

Upvotes: 0

Views: 712

Answers (0)

Related Questions