Add Pagination support to search queries.