Stream: implementers
Topic: search results and paging
Brian Reinhold (Apr 29 2019 at 09:58):
If a server returns a search result Bundle with both results AND pages, is there a 'first' page or just a 'next' page? (HAPI seems to do this). If there is a 'first' page does that have the same information as the results contained in Bundle? I have seen servers return results with 0 entries and 0 totals but pages. In that case the 'first' page has the first results. There may be a next as well. Are both cases okay? I am just wondering how many if-then-else clauses I will have to make.
Lloyd McKenzie (Apr 29 2019 at 13:09):
If there are no results, there should not be a 'next' link. Inclusion of a 'first' link is optional and is somewhat redundant when you're already looking at the first page - which is always the first set of results you get back a query response.
Michael Donnelly (May 01 2019 at 15:59):
If you want the first page, you can repeat the original search.
Last updated: Apr 12 2022 at 19:14 UTC