@Singleton @Path(value="/recommendToMany") public final class RecommendToMany extends AbstractOryxResource
Responds to a GET request to
/recommendToMany/[userID1](/[userID2]/...)(?howMany=n)(&offset=o)(&considerKnownItems=c)(&rescorerParams=...)
Results are recommended items for the user, along with a score. Outputs contain item and score pairs, where the score is an opaque value where higher values mean a better recommendation.
howMany, considerKnownItems and offset behavior, and output,
are as in Recommend.
INPUT_PRODUCER_KEY, MODEL_MANAGER_KEY| Constructor and Description |
|---|
RecommendToMany() |
| Modifier and Type | Method and Description |
|---|---|
List<IDValue> |
get(List<javax.ws.rs.core.PathSegment> pathSegmentsList,
int howMany,
int offset,
boolean considerKnownItems,
List<String> rescorerParams) |
check, check, checkExists, checkNotReadOnly, getServingModel, isReadOnly, maybeBuffer, maybeBuffer, maybeDecompress, parseMultipart, sendInputgetInputProducer, getServingModelManager, init@GET
@Path(value="{userID : .+}")
@Produces(value={"text/plain","text/csv","application/json"})
public List<IDValue> get(@PathParam(value="userID")
List<javax.ws.rs.core.PathSegment> pathSegmentsList,
@DefaultValue(value="10") @QueryParam(value="howMany")
int howMany,
@DefaultValue(value="0") @QueryParam(value="offset")
int offset,
@DefaultValue(value="false") @QueryParam(value="considerKnownItems")
boolean considerKnownItems,
@QueryParam(value="rescorerParams")
List<String> rescorerParams)
throws OryxServingException
OryxServingExceptionCopyright © 2014–2018. All rights reserved.