Added ElasticPagination class and used it in `quick_search()`. #6572

Will rebase the PR once #12 is merged.