-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add trending score to solr #7429
Comments
Ideas for better trending on homepage
|
Based on a conversation yesterday between @cdrini and myself, there seems like a approach forward:
|
Hi, mind assigning me to this? I'd love to take a shot at it. |
Ben and I chatted and I presented this rough approach which I believe should be the least headache inducing and also give us up-to-the hour trending score data: Every day: /export Solr in place update: Every hour (H:05): /export From DB: get all events in hour H-1 Solr in place update: |
We would love to be able to see trending items in a given collection (eg what's trending today in
subject:fantasy
?). This would be a useful sorting parameter for many pages (eg Library Explorer, subject pages, trending carousel), that would provide interesting books while also providing a good variety of books.In order to do this we need a score to be stored in solr. We can do this using a z score algorithm like the one described here.
We'd need a few new solr fields:
Then the rough formula is:
We would then need:
trending_actions_daily
andtrending_score
trending_actions_hourly
andtrending_score
trending_actions_hourly
andtrending_actions_monthly
andtrending_score
The text was updated successfully, but these errors were encountered: