this code assumes search provider uses the first page, which may not be the case
maybe check that `searchPage.separate_page === false`?
@crdlc @ranbena