O'Reilly logo
  • Minoru Mizutani thinks this is interesting:

Finally, we have the mapping complete. Although not perfect, it will be good enough for us to create a nice web application for our first recommendation project. That's exactly what we will do next.


Cover of Building a Recommendation Engine with Scala


It is better to also add the following mongodb indexes for better query perfomance:
> db.products.createIndex({"overallReview.total":-1})
> db.products.createIndex({"overallReview.averageRating":-1})
> db.customers.createIndex({"Number":1})
> db.customers.createIndex({"id":1})
> db.customers.createIndex({"customer_number":1})
> db.reviews.createIndex({"overallReview.total":-1})
> db.reviews.createIndex({"votes":-1})