compared with
Version 4 by jana.parvanova
on Nov 06, 2014 16:12.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (2)

View Page History
* User may be reviewing a CV and we may want to recommend suitable job descriptions

The way to add this contextual information is via the *contentid* parameter:POST /recommend/recommend/behavioural/?key=<api_key>&userid=test-user-1&max=4&sort=rel&contentid=doc-garden-1

{code}

POST /recommend/recommend/behavioural/?key=<api_key>&userid=test-user-1&max=4&sort=rel&contentid=doc-garden-1

{code}

Now, as both user's profile and related content is about gardens, we get:
{code}
{
"version": "Ontotext Recommendations API",
"type": "RECOMMENDATION",
"status": "OK",
"articles": [
{
"id": "doc-garden-2",
"title": "My Spring Garden!",
"score": 0.8721830248832703,
"published": "2014-11-01T17:00:37Z",
"url": "http://example.org/my-garden-2",
"popularity": 11
},
{
"id": "doc-garden-4",
"title": "Work in the Garden!",
"score": 0.2629146873950958,
"published": "2014-11-01T17:00:37Z",
"url": "http://example.org/my-garden-4",
"popularity": 8
}
]
}
{code}