Tweak the search API so to make creating a pager easier.