ErickTamayo / laravel-scout-elastic

Elastic Driver for Laravel Scout
MIT License
916 stars 242 forks source link

Make it work with ES 7 #162

Closed Dani2kn closed 2 years ago

Dani2kn commented 2 years ago

Hey Erick, can you implement the fix from #160

Also:

TypeError Unsupported operand types: array / int

Tamayo\LaravelScoutElastic\Engines\ElasticsearchEngine::paginate vendor/tamayo/laravel-scout-elastic/src/Engines/ElasticsearchEngine.php:114

$result['nbPages'] = $result['hits']['total'] / $perPage;

Replace with:

$result['nbPages'] = $this->getTotalCount($result) / $perPage;

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.