I am trying to accomplish the following:
Each document in algolia represents a post.
A user can like a post. This saves the post ID to an array stored in database (Firestore).
I would like it so that the user can search all liked posts.
I would like to know if the following approaches work, and if there is any guide/documentation to accomplishing it:
- Filtering on hundreds of ObjectIDs This is the brute force method of creating a huge filter that says uuid:1 OR uuid:5 OR uuid:400. Is this a feasible method, or will it quickly run into limits of Algolia?
- Filtering on the client side I have the data readily available on the client side. Am I able to implement my own filtering for the search client?
Approaches that I know don’t work:
- I have seen some pages that suggest maintaining a list on the documents in algolia. However, if I stored the userIds of everyone who liked a post, then it would quickly go over the max document size of 10k.
Any guidance would be greatly appreciated.