teamtnt / laravel-scout-tntsearch-driver

Driver for Laravel Scout search package based on https://github.com/teamtnt/tntsearch
MIT License
1.1k stars 144 forks source link

Error when import table #50

Closed mostafaznv closed 7 years ago

mostafaznv commented 7 years ago

when i want to import a table, i get this error:

[Symfony\Component\Debug\Exception\FatalErrorException]
  Class TeamTNT\Scout\Engines\TNTSearchEngine contains 1 abstract method and must therefore be declared abst
  ract or implement the remaining methods (Laravel\Scout\Engines\Engine::mapIds)
rforced commented 7 years ago

I too got that error when using "php artisan scout:import"

[Symfony\Component\Debug\Exception\FatalErrorException]
  Class TeamTNT\Scout\Engines\TNTSearchEngine contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Laravel\Scout\Engines\Engine::mapIds)

Try using "php artisan tntsearch:import" instead. It will probably work.

This seems to be a bug with the tntsearch plugin.

jaydeluca commented 7 years ago

I had the same issue, and then i updated to the dev master branch, and used:

php artisan tntsearch:import "App\ModelName"

and all is working now