Responds to a GET request to {@code /similarity/[itemID1](/[itemID2]/...)?howMany=n(&rescorerParams=...)}, and in turn calls {@link MyrrixRecommender#mostSimilarItems(long[],int)} with the supplied values.If howMany is not specified, defaults to {@link AbstractMyrrixServlet#DEFAULT_HOW_MANY}.
Unknown item IDs are ignored, unless all are unknown, in which case a {@link HttpServletResponse#SC_BAD_REQUEST} status is returned.
Outputs item/score pairs in CSV or JSON format, like {@link RecommendServlet} does.
@author Sean Owen @since 1.0
|
|