Closed mzhilyaev closed 10 years ago
There is the option to specify the number of results in the API. Please check the headliner docs
It's a query parameter ?limit=10 (see example https://github.com/oyiptong/up-headliner/blob/master/scripts/example_request.sh )
https://github.com/oyiptong/up-headliner#personalization-api
One simple fix is changing the default preference to include the ?limit=10
The simple fix suggested by Mardak does not work due to the server bug described here: https://github.com/oyiptong/up-headliner/issues/9 Will instrument an implicit collection of 10 stories in the code.
Fixed server-side in https://github.com/oyiptong/up-headliner/pull/12
We still have to add ?limit=10 to the nytimes_headliner_url in package.json
Depending on the interests the number of recommended links varies greatly. 1) Interests {Programming:1} - widget display 20 links 2) Interests {Programming:1, Sports:1} - widget displays 12 links 3) Ed says he see a list of 78 recommendations
The number of recommended articles should be 10