laravel-scout-tntsearch-driver: Error while trying to import with tntsearch:import
Hello,
I have a table with a bit above 57 million rows that I’m trying to index. If I start the indexation with scout:import all goes well and indexation starts, but it’s slow, so I’m trying to use tntsearch:import. Now with that last command I’m getting an undefined index error.
I’ve found out that the culprit is that I specify the primaryKey name as such in my model:
protected $primaryKey = "song_id";
Is there anyway I can make the driver play well with this line?
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 16 (4 by maintainers)
I used to have something similar. I solved it when added in array
'id' => $this->id.