Skip to content

Update filter expression page to include filtering by array #3084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
bendangelo opened this issue Dec 19, 2024 · 2 comments
Open
1 task

Update filter expression page to include filtering by array #3084

bendangelo opened this issue Dec 19, 2024 · 2 comments
Labels
good first issue Issues that are easy or quick to fix

Comments

@bendangelo
Copy link

bendangelo commented Dec 19, 2024

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
@guimachiavelli
Copy link
Member

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"]?

@bendangelo
Copy link
Author

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

@guimachiavelli guimachiavelli added the good first issue Issues that are easy or quick to fix label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issues that are easy or quick to fix
Projects
None yet
Development

No branches or pull requests

2 participants