[v2] Search results are capped at 500 (or 489?) instead of 5000

shahoodshahood Member

Hi @AmosDuveen

Here I have to report two issues:

1) The limit of search results is documented as 5000 (screenshot below) whereas if we give any value in 'limit' field that is more than 500, it returns the following error:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>limit is greater than 500</p>

So, apparently on the backend, the limit is capped at 500 instead of 5000

2) Secondly, the actual results returned are less than those reported in metadata's 'total' field. For example, I searched for 'storye' and 'second-story man' using
https://od-api.oxforddictionaries.com/api/v2/search/en-gb?q=storye&prefix=false&limit=500 and
https://od-api.oxforddictionaries.com/api/v2/search/en-gb?q=second-story%20man&prefix=false&limit=500 respectively. The results reported by 'total' field were 579 and 640 respectively but actual results returned were 489 in both cases.

Hope to hear from you soon!

Thanks

Tagged:

Comments

  • AmosDuveenAmosDuveen Member, Administrator, Moderator admin

    Hi @shahood,

    Thanks for feeding back all of these issues, I have passed them onto our developers to investigate.

Sign In or Register to comment.