0

My blog table has the following structure

Schema::create('blogs', function (Blueprint $table) { $table->uuid('id')->primary();

And my scout is configured with Meilisearch as driver. When I issue the import command

php artisan scout:import "App\Models\Blog" Imported [App\Models\Blog] models up to ID: 979a7e53-3199-4d83-8de9-247c6c5fe***

But it doesn't import any records

And this is what I have configured in the model Blog

public function getScoutKey(): string
{
    return $this->id;
}

public function getScoutKeyName(): string
{
    return 'id';
}

public function toSearchableArray()
{
    return [
        'id'      => $this->getKey(),
        'title'   => $this->title,
        'content' => $this->content
    ];
}

Doesn't scout or meilisearch support importing records with UUID as id's ?

0 Answers0