r2b2
r2b2

Reputation: 1275

Using Laravel Scout database driver, where does it store the indexes?

I was trying out Laravel Scout's database driver and I am wondering how it works behind the scene. Where does it store the indices and how does it perform the searches?

Upvotes: 0

Views: 237

Answers (1)

Yevhen Salitrynskyi
Yevhen Salitrynskyi

Reputation: 21

It is running "WHERE LIKE" clauses. Indexes are not stored anywhere, so you may want to add an index to you database using migration:

Schema::table('posts', function (Blueprint $table) {
    $table->fullText(['title', 'content']);
});

Upvotes: 0

Related Questions