Closed carlin-rj closed 6 months ago
matchAllSearch()
might be an old method. Use searchQuery()
.
To count the total rows use:
Document::searchQuery()
->size(0)
->trackTotalHits(true) // Needed for indexes with more then 10000 documents.
->execute()
->total();
Hope it helps.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
Describe the bug Execute the command
php artisan elastic:migrate 2024_03_19_190722_oa_document
an error message appearsCall to undefined method Modules\Document\Models\Document::matchAllSearch()
Model class:
The model has introduced
Elastic\ScoutDriverPlus\Searchable
Migration class:
Implementation steps:
Expected behavior Normal execution