Site Builder Studio


Search result shows pagination but not results

I’ve got Scout going with Algolia as driver ( same issue occurred with Meilisearch as driver ) , when searching for query I know has plenty of results I’m getting pagination links but zero results shown on page. It seems to make no difference what scout driver is used, the issue popped up with both.

To fix laravel search results with pagination but no results, flush scout then re-import your model.

Run the following command;

php artisan scout:import “App\Models\Product”

This command automatically flushes the index before importing the model.

You may also want to run composer dumpautoload ( because sometimes composer doesn’t behave as expected? ) and php artisan cache:clear and view:clear.