laravel / scout

Laravel Scout provides a driver based solution to searching your Eloquent models.
https://laravel.com/docs/scout
MIT License
1.57k stars 336 forks source link

Cursor Pagination in Scout #475

Closed MikeElahi closed 3 years ago

MikeElahi commented 3 years ago

Hello, Since Cursor pagination has been added to the Laravel framework recently (https://github.com/laravel/framework/pull/37216), I was wondering whether this can be implemented for Scout as well?

driesvints commented 3 years ago

Not sure if this is needed in scout? How would you use this?

crynobone commented 3 years ago

Scout map the results using relevant based on keyword, where cursor pagination focus on attribute > lastId such as:

select * from users where id > 15 order by id asc limit 15;
driesvints commented 3 years ago

Right. Don't think this is needed in Scout.