/**
  * Gets the recommended courses for the personalized recommendations
  * page for the user
  * @param User $user
  * @param $params
  */
 public function getRecommendations(UserEntity $user, $params)
 {
     $cl = $this->container->get('course_listing');
     $follows = $user->getFollowsCategorizedByItem();
     $must = array('terms' => array('subjects.id' => $follows[Item::ITEM_TYPE_SUBJECT]));
     $data = $cl->byFollows($follows, $params, $must, $this->getMustNot($user));
     return $data;
 }