Skip to content
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

Something like array.contains #118

Open
maiconkf opened this issue Apr 24, 2023 · 2 comments
Open

Something like array.contains #118

maiconkf opened this issue Apr 24, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@maiconkf
Copy link

maiconkf commented Apr 24, 2023

I have a collection "Events" and I need to search categories in an array. (eg.: tags: ["1", "2", "3"])
How can I do this?

@maiconkf maiconkf added the enhancement New feature or request label Apr 24, 2023
@maiconkf
Copy link
Author

I got it to turn a string into a number..

algolia.instance.index('events').filters('tags=2')

@Mind-Reaper
Copy link

I am also trying to do something like this. Search objects where "tags" (an array) contains "security (a string)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants