add a getRatingForDocument in RatingService