jeroen-g/explorer
Laravel-friendly wrapper for Explorer, a lightweight full-text search engine. Index and search your Eloquent models with simple configuration, fast queries, and flexible ranking/filters. Ideal for adding on-site search without running Elasticsearch or Algolia.
You can use Laravel Scout's pagination feature to get paginated results from Explorer.
By default, Elasticsearch returns only the first 10 search results as you can see in their documentation.
Laravel Scout has a take() method and Explorer uses that to set a custom search result size for Elasticsearch.
For example to get a maximum of 300 search results:
use App\Models\Post;
$results = Post::search('Spartans')->take(300)->get();
How can I help you explore Laravel packages today?