ErickTamayo / laravel-scout-elastic

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

lumen8 use paginate error, #149

Closed ghost closed 3 years ago

ghost commented 3 years ago

model::search($name)->simplePaginate($pageSize, '', $page);

report: vendor/tamayo/laravel-scout-elastic/src/Engines/ElasticsearchEngine.php 114 "Unsupported operand types"

Mnikoei commented 3 years ago

I have same issue in laravel 8.

SergeyOsipoff commented 3 years ago

The problem is in this file: src / Engines / ElasticsearchEngine.php

Wherever there is ['hits']['total'] (3 places in the file) should be replaced with ['hits']['total']['value']

stale[bot] commented 3 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.