Hello,
I want to implement search feature on users favorite items.
Each user has a field in their document - favoriteItems which is array of strings that are references to the documents.
Is there a way to pass that array to react instant search, so it could create a filter based on the document Id, so that it would only search for documents that are within that array.
And if there is such functionality, is there a limit to or I can add array with 100+ items in it.
k
Kishore Nallan
10/15/2021, 9:16 AM
đź‘‹ @Jason Bosco Will be able to go into the detail on this question later today.
@Jason Bosco not the keywords, but I want to search the actual items that user has favorited.Â
You can see similar feature on instagram when you want to search through people that particular account follows.
Lukas Visinskis
10/15/2021, 10:30 PM
So, instead of having userFavorites(with restaurant ids) field in user document, I would have to attach a field to the actual restaurant with all of the users that have favorited that restaurant?Â
Let me know if I am understanding this properly.
j
Jason Bosco
10/15/2021, 10:30 PM
That's right
Jason Bosco
10/15/2021, 10:30 PM
Also, by keywords, I meant "man" in your example above