Responds to a GET request to {@code /similarityToItem/[toItemID]/itemID1(/[itemID2]/...)}, and in turn calls {@link MyrrixRecommender#similarityToItem(long,long)} with the supplied values.
Unknown item IDs are ignored, unless all are unknown or {@code toItemID} is unknown, in which case a{@link HttpServletResponse#SC_BAD_REQUEST} status is returned.
The output are similarities, in the same order as the item IDs, one per line.
@author Sean Owen @since 1.0
|
|