daravel_scout 1.25.0
daravel_scout: ^1.25.0 copied to clipboard
Laravel Scout for Daravel on the database engine, with LIKE, full text, and semantic and hybrid search on pgvector or MariaDB.
daravel_scout #
English · Bahasa Indonesia
Laravel Scout for Daravel, on the database engine: the
search runs on the model's own table with LIKE and full text search, and
semantic() and hybrid() search by meaning on PostgreSQL with pgvector or on
MariaDB.
final class Post extends Model with Searchable {
// ...
@override
Map<String, Object?> toSearchableArray() => {'title': null, 'body': null};
}
final posts = await Scout.search(Post.definition, 'laravel').take(10).get();
See the guide.