Implementing Item Search Feature on User Favourites
TLDR Lukas sought to implement a search feature on users' favourite items. After initial clarification from Kishore Nallan, Jason suggested structuring data differently by attaching user favourites to the actual items, which Lukas understood.


Oct 15, 2021 (23 months ago)
Lukas
08:47 AMI 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.
Kishore Nallan
09:16 AM

Jason
06:03 PMHere's a thread that outlines this: https://typesense-community.slack.com/archives/C01P749MET0/p1625683625475800?thread_ts=1625683440.475500&cid=C01P749MET0
Lukas
10:29 PMYou can see similar feature on instagram when you want to search through people that particular account follows.
Lukas
10:30 PMLet me know if I am understanding this properly.
Jason
10:30 PMJason
10:30 PMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
User-Specific Tagging and Filtering in UI
bnfd asked for the best way to create user-specific tags available on the UI. Jason suggested using personalized filters and creating a separate collection for each user's movies. The duo clarified the use of 'tags' in schemas and the refinementList widget in instantsearch. They also discussed various approaches to import and search large document collections.

Ranking Favorite Food Records in Database Search Results
Julian asked for best practices to rank favorite food records in search results. John suggested using `_eval`. Jason recommended adding a `favorited_by_user_ids` array field to each record.
Troubleshooting Typesense Setup and Understanding Facets and Keywords
Demitri encountered errors when exploring Typesense for the first time. Jason guided them through troubleshooting and discussed facets, keyword settings, and widget configurations. Helin shared a Python demo app and its source code to help Demitri with their project.
