Stream: hapi
Topic: Is search bundle next URL stable?
Jing Tang (Apr 12 2022 at 11:03):
When we use the next url in the bundle to navigate to the next page of the search result, I'm assuming the server has the notion of the search session so that the search result between pages are stable?
Jing Tang (Apr 12 2022 at 11:04):
for example, if a new resources is created and it would appear in the search result, when i navigate to the 2nd page of the search using next url, does that resource magically appear?
Patrick Werner (Apr 12 2022 at 11:10):
No, searches are persisted in the DB, so the next page would not include this new resource (which is a good thing, because you get consistency while going through the pages.
Jing Tang (Apr 12 2022 at 12:24):
fantastic - thanks. how long is the search session kept in db if there's a time out?
Patrick Werner (Apr 12 2022 at 13:00):
by default in the jpastarter 60 min, irrc
Patrick Werner (Apr 12 2022 at 13:00):
can be set in the application.yaml
Jing Tang (Apr 12 2022 at 13:09):
thanks. i'm assuming this is a "HAPI" thing rather than a "FHIR spec" thing? Couldn't see anything concrete in the spec.
Patrick Werner (Apr 12 2022 at 14:34):
yes.
Daniel Venton (Apr 12 2022 at 15:06):
And it depends on the implementation in a facade situation. In my server (a HAPI implementation) case, if you initiate a search and get page1... a new record is inserted in page 1...you request page 2, you will be offset by 1. Our pages are dynamically created on each page request. The entire page set is not calculated and stashed.
Last updated: Apr 12 2022 at 19:14 UTC