Hello, I'm currently working on a popularity rank...
# community-help
j
Hello, I'm currently working on a popularity ranking feature using the typesense analytics rules feature (https://typesense.org/docs/27.1/api/analytics-query-suggestions.html#counting-events-for-popularity) . Everything is working well for an "all time" popularity rankihng. However, I'm trying to build a "trending" ranking as well where popularity events from > 1 week ago are discarded. This will weight recently popular products higher than older products that simply accumulated a high popularity score. Does anyone know how to implement that? My current solution would be to schedule a task 7 days from now to manually decrement the popularity field but I was hoping typesense had this feature already.
j
My current solution would be to schedule a task 7 days from now to manually decrement the popularity field
That's the way to do it. This is not built-in to Typesense at the moment.
1