on 02-12-2015 7:57 PM
Hi,
We are trying to paginate search results. $top works fine with the search api but when we use $skip, the system generates an error.
Thanks,
Satish
Message was edited by: Ruediger Mueller
Hi Satish,
To go to the next page of search results, use the $skiptoken value at the bottom of the search results. This will go to the next page of search results. Indeed $skip is not supported for this endpoint as the error message indicates.
Thanks,
Bo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Bo.
Search results always don't return a consistent number of results if it has __next url at the bottom of the results. I thought the number of results is fixed at 20, but looks like this is not the case. In one example call(https://jam8.sapjam.com/api/v1/OData/Search?Query=) it returns 18 and a next url, which inturn returns 4.
Can you please clarify?
Thanks,
Satish
Satish,
It is not a paginated api, but a stream api, so you need to just call the url with the $skiptoken to get more results. The technical implementation reason for this is due to filtering of results for security reasons. Are you trying to paginate this on your client side rather than work with a stream (next page/previous page) style search?
Thanks,
Bo
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.