Responds to a GET request to {@code /recommend/[userID](?howMany=n)(&considerKnownItems=true|false)(&rescorerParams=...)}and in turn calls {@link MyrrixRecommender#recommend(long,int)}. If {@code howMany} is not specified, defaults to{@link AbstractMyrrixServlet#DEFAULT_HOW_MANY}. If {@code considerKnownItems} is not specified,it is considered {@code false}.
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
|
|