Hi, I’m trying to implement Analytics & Query ...
# community-help
g
Hi, I’m trying to implement Analytics & Query Suggestions on Typesense Cloud. I created two collections, one for the matched queries and one for the no hit queries. Then I defined the analytic rules but after many searches the collections are empty. We recently migrated from a pretty old version of TS to the latest one. Can you help me troubleshoot this? Thank you!
j
It takes about 5 minutes for the queries to show up in the destination collection
I don't see any clusters under the email address you have on Slack btw, do you have an account under a different email address?
g
I sent you the cluster id via private message
j
In the collection schema for the destination collections, there's an extra field called
shop
. That's causing a failure when Typesense tries to insert entries in the collection, since it's expecting a very specific schema as described in the docs
g
Ah I see! Will try again later with the schema cha ges. Thak you!
If I wanted to query say popular product queries of one specific shop how would I do it?
j
You would have to create separate collections for each shop, and then create separate analytics rules and destination collections for each shop
👍 1
g
I guess I can treat the suggestions globally and not specific by shop and it would work fine. Thanks for the help.
👍 1