Sorting Search Results by User Subscription
TLDR Tobias asked how to sort song search results based on user subscription. Jason suggested using scoped API keys.
Powered by Struct AI
2
7mo
May 08, 2023 (7 months ago)
Tobias
Tobias
02:01 PMHello! If I have a dataset of songs but users has different entitlements to listen to songs based on subscription. I still want the user to search for all songs but only streamble songs for their subscription should return first in the response. Should I use facets for that?
Jason
Jason
05:52 PMYou want to use scoped api keys for this: https://typesense.org/docs/0.24.1/api/api-keys.html#generate-scoped-search-key
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Generate Multiple Scoped Search Keys with Typesense
Kian inquired if many `scoped search keys` could be generated for each user and prevent access to indexes unrelated to each user. Kishore Nallan confirmed this and explained filtering by 'user_id' in the API key would restrict record access.
10
14mo
Typesense Performance with Large Datasets & Custom Sort
krok inquires about Typesense's performance on large datasets and custom sorting. Kishore Nallan explains that Typesense is optimized for this scenario using pagination and text relevance.
35
10mo
Creating Filters for Scoped Search Keys
Jeremy inquired about encapsulating filters for multiple collections into one search key. Jason confirmed the need to create one scoped api key per collection.
2
18mo