Search functionality with pagination