Closed sunny closed 8 months ago
You should be able to do this already:
typesense.collections["books"].documents.search(
q: "hunger",
query_by: "title",
sort_by: "ratings_count:desc",
'x-typesense-user-id': 42
)
Since x-typesense-user-id
is also accepted as a query parameter
Thank you @jasonbosco!
Description
We should be able to tell which user has triggered a search query, following the documentation:
Analytics Query Suggestions — Typesense 0.25.2 Documentation
Expected Behavior
We should be able to pass along a user id that is then added as a header.
Perhaps this could be an extra argument to
search
? E.g.:Metadata
Typesense Version: 0.25.2