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

Support::search($keywords)->paginate() SQLSTATE[42S22]; #221

Closed phpLHT closed 5 years ago

phpLHT commented 5 years ago

when I use Support::search($request)->get(); is ok but when I use Support::search($request)->paginate(10);
an issue occour;

lluminate \ Database \ QueryException (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'eisoo_sub.id' in 'where clause' (SQL: select eisoo_support.id from eisoo_support left join (select * from eisoo_support where 0 = 1) as sub on eisoo_sub.id = eisoo_support.id where 0 = 1 and eisoo_sub.id is null) Previous exceptions SQLSTATE[42S22]: Column not found: 1054 Unknown column 'eisoo_sub.id' in 'where clause' (42S22) SQLSTATE[42S22]: Column not found: 1054 Unknown column 'eisoo_sub.id' in 'where clause' (42S22)

laravel 5.5 "teamtnt/laravel-scout-tntsearch-driver": "3.3.0"

phpLHT commented 5 years ago

i have solved by get the database prefix namespace TeamTNT\Scout\Engines;