fix combine sphinx search and paginate