Responds to a GET request to {@code /recommendToMany/[userID1](/[userID2]/...)(?howMany=n)(&considerKnownItems=true|false)(&rescorerParams=...)}and in turn calls {@link MyrrixRecommender#recommendToMany(long[],int,boolean,IDRescorer)}. If {@code howMany} is not specified, defaults to{@link AbstractMyrrixServlet#DEFAULT_HOW_MANY}. If {@code considerKnownItems} is not specified,it is considered {@code false}.
Unknown user IDs are ignored, unless all are unknown, in which case a {@link HttpServletResponse#SC_BAD_REQUEST} status is returned.
Output is in CSV or JSON format. Select output format using the HTTP {@code Accept} header.
CSV output contains one recommendation per line, and each line is of the form {@code itemID, strength}, like {@code 325, 0.53}. Strength is an opaque indicator of the relative quality of the recommendation.
JSON output is an array of arrays, with each sub-array containing an item ID and strength. Example: {@code [[325, 0.53], [98, 0.499]]}.
@author Sean Owen @since 1.0
|
|