Hi team, I'm create a popular_query collection and...
# built-with-typesense
t
Hi team, I'm create a popular_query collection and add an analytic rule to generate most popular queries for my users but it doesn't seems to register any query from other collection. I'm following this guide: https://typesense.org/docs/0.25.1/api/analytics-query-suggestions.html#aggregation-key and attached is my set up. Can you help see what I have done wrong here, thanks.
k
Could you upgrade to v0.25.2.rc1 and try again? We fixed a bug related to analytics aggregation in that build
t
I still don't see new query got added to the popular_query collection after upgrade. Do I need to create new collection and new analytic rule after upgrade for it to work?
k
No it should work automatically. The aggregations happen every 5 mins. Has it been longer than that?
t
yeah it has been more than 5 mins and I have try to hit the source collection multiple times with different query but nothing show up in the popular_query collection
k
Please DM me the cluster ID
The aggregating collection should have a field name called
q
but the collection has a field named called
query
t
I have created new collection with 'q' and 'count' field and it's working now. Thank you very much.
🙌 1