public final class SimilarityToItemServlet extends AbstractMyrrixServlet
Responds to a GET request to /similarityToItem/[toItemID]/itemID1(/[itemID2]/...),
and in turn calls MyrrixRecommender.similarityToItem(long, long...) with the supplied values.
Unknown item IDs are ignored, unless all are unknown or toItemID is unknown, in which case a
HttpServletResponse.SC_BAD_REQUEST status is returned.
The output are similarities, in the same order as the item IDs, one per line.
ALL_PARTITIONS_REF_KEY, LOCAL_INPUT_DIR_KEY, PARTITION_KEY, READ_ONLY_KEY, RECOMMENDER_KEY, RESCORER_PROVIDER_KEY, TIMINGS_KEY| Constructor and Description |
|---|
SimilarityToItemServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
getConsiderKnownItems, getHowMany, getRecommender, getRescorerParams, getRescorerProvider, getTiming, getUnnormalizedPartitionToServe, init, output, servicedoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
doGet in class javax.servlet.http.HttpServletIOExceptionCopyright © 2012-2013. All Rights Reserved.