default to 0 views
fix glitch in req handling
use algolia as a backup
only use algolia if not class number