documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Update filter expression page to include filtering by array

Open bendangelo opened this issue 1 year ago • 2 comments

I didn't know you could index an array and then filter by multiple tags like so:

currencyTags = EUR AND countryTags = BANGLADESH

I think this should be added to this page: https://www.meilisearch.com/docs/learn/filtering_and_sorting/filter_expression_reference

Task

  • [ ] Add a short paragraph to /learn/filtering_and_sorting/filter_expression_reference#data-types specifying equality operations are valid in both individual values and arrays of values

bendangelo avatar Dec 19 '24 19:12 bendangelo

Hello and thanks for opening an issue in this repo, @bendangelo, it's much appreciated.

I'm not sure I completely understand what you mean. Were you surprised by the fact the = operator matches values inside an array, such as e.g. currencyTags = EUR returning a document with currencyTags = [ "EUR"]?

guimachiavelli avatar Feb 11 '25 16:02 guimachiavelli

Yes exactly. I didn't know it was possible to use on array values.

bendangelo avatar Feb 13 '25 05:02 bendangelo