Issue 18610

dataset search api interprets limit different from other endpoints

18610
Reporter: hoefft
Assignee: cgendreau
Type: Task
Summary: dataset search api interprets limit different from other endpoints
Priority: Unassessed
Status: Open
Created: 2016-06-24 14:37:05.916
Updated: 2016-06-24 15:13:52.9
        
Description: http://api.gbif.org/v1/dataset/?offset=32746&limit=20
returns
{code}
"offset": 32746,
"limit": 20,
"endOfRecords": true,
"count": 32757,
{code}
whereas
http://api.gbif.org/v1/dataset/search?offset=32746&limit=20
returns
{code}
"offset": 32746,
"limit": 11,
"endOfRecords": true,
"count": 32757,
{code}

i would expect the limit param to be the same. namely 20]]>
    


Author: cgendreau
Created: 2016-06-24 15:13:52.9
Updated: 2016-06-24 15:13:52.9
        
Hi Mr. Høfft

Thanks for reporting the issue.

The following line would require to be changed:
https://github.com/gbif/common-search/blob/master/src/main/java/org/gbif/common/search/builder/SearchResponseBuilder.java#L143