@Singleton @Path(value="/mostPopularItems") public final class MostPopularItems extends AbstractOryxResource
Responds to a GET request to
/mostPopularItems(?howMany=n)(&offset=o)(&rescorerParams=...)
Results are items that the most users have interacted with, as item and count pairs.
howMany and offset behavior are as in Recommend. Output
is also the same, except that item IDs are returned with integer counts rather than
scores.
MostActiveUsersINPUT_PRODUCER_KEY, MODEL_MANAGER_KEY| Constructor and Description |
|---|
MostPopularItems() |
| Modifier and Type | Method and Description |
|---|---|
List<IDCount> |
get(int howMany,
int offset,
List<String> rescorerParams) |
check, check, checkExists, checkNotReadOnly, getServingModel, isReadOnly, maybeBuffer, maybeBuffer, maybeDecompress, parseMultipart, sendInputgetInputProducer, getServingModelManager, init@GET
@Produces(value={"text/plain","text/csv","application/json"})
public List<IDCount> get(@DefaultValue(value="10") @QueryParam(value="howMany")
int howMany,
@DefaultValue(value="0") @QueryParam(value="offset")
int offset,
@QueryParam(value="rescorerParams")
List<String> rescorerParams)
throws OryxServingException
OryxServingExceptionCopyright © 2014–2018. All rights reserved.