Reputation: 1275
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
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