Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Scout Elasticsearch Driver

Scout Elasticsearch Driver Laravel Package

lavatech/scout-elasticsearch-driver

A Laravel Scout driver that connects Elasticsearch to your Eloquent models for fast full-text search, filtering, and aggregations. Index and query large datasets through a fluent, Scout-compatible API, making it a solid fit for apps that need scalable, relevant search.

View on GitHub
Deep Wiki
Context7

The Elasticsearch Driver for Laravel Scout

Frequently asked questions about Scout Elasticsearch Driver
How do I install lavatech/scout-elasticsearch-driver with Composer?
The package is hosted on Bitbucket, not Packagist, so you cannot simply run composer require against the default registry. Add a repositories VCS entry pointing at the Bitbucket URL, then require lavatech/scout-elasticsearch-driver, and provision SSH keys or an app password for every CI environment. Because the repository can be deleted or made private at any time, mirror it into your own GitHub or GitLab org before you write any code.
Is lavatech/scout-elasticsearch-driver a fork of babenkoivan/scout-elasticsearch-driver?
The package name and Bitbucket hosting strongly suggest a vendored fork of the de facto community driver, but that is an inference rather than a documented fact. Produce a diff against the current upstream release before adopting so you can see exactly what changed and why. Until that diff exists, treat every line as unreviewed code.
Which Laravel, Scout, PHP and Elasticsearch versions does this driver support?
Nothing in the available metadata pins supported versions, so you must prove compatibility from composer.json and the Scout Engine contract. Scout 9 and 10 changed the createIndex, deleteIndex and update signatures, and each Elasticsearch client major differs as well. Pin all four versions and test them together before committing to the driver.
Does this driver work with Elasticsearch 8?
Elasticsearch 7 to 8 removed mapping types and changed include_type_name, so a fork that predates Elasticsearch 8 will not work against a managed ES 8 cluster without patching. Confirm whether you are targeting self-managed Elasticsearch or Elastic Cloud, and which major version, before adopting. This single decision may invalidate the package outright.
How do I configure indexes and run index migrations with this Scout driver?
The driver is expected to follow the upstream pattern of an index configurator class plus artisan commands to create, update and drop indexes. Confirm the actual command names and config keys in the source rather than assuming. Wire index migrations into your deploy pipeline so schema and mappings stay in sync with the Eloquent model.
Can I use aggregations, facets and custom analyzers with this Elasticsearch driver?
Those advanced features are precisely why you would choose Elasticsearch over Meilisearch or Scout's database driver. Upstream supports search rules, aggregations and configurator-defined mappings, and this fork presumably inherits them, but verify in the source. Also confirm you have a genuine product requirement for them before accepting the extra operational surface.
What are the risks of depending on a Bitbucket-hosted Composer fork?
There are three distinct risks: availability, if the owner deletes the repo or makes it private and breaks composer install everywhere; abandonment, if upstream bug fixes and Elasticsearch client changes are never inherited; and adoption, since there is no star count, dependent list or issue history to surface regressions. Mitigate by mirroring the repository into your own org immediately and assigning a named owner. Assume you inherit the maintenance obligation silently.
How should I test search functionality with this driver?
Test against a real Elasticsearch instance, for example via Docker or Testcontainers, rather than mocking the client, because mapping and analyzer behaviour will not be exercised by mocks. Remember that Elasticsearch is near-real-time, so index refresh timing affects assertions after writes. Confirm that Scout's searchable test helpers still work against the driver's engine implementation.
Is the license intact and compatible with our distribution model?
Verify that the upstream MIT LICENSE and attribution survived the fork, since stripping it is a legal exposure rather than a style issue. Bitbucket scratch forks frequently drop license files, so check the repository root yourself. Do this before the package reaches any distributed or client-facing build.
Should I use this driver or just switch to Meilisearch or the database driver?
Scout's first-party Algolia, Meilisearch and database drivers cover most CRUD-search needs with far less operational surface. Elasticsearch only earns its keep when you need custom analyzers, aggregations and facets, relevance tuning or multi-field boosting. If you cannot point to that requirement, prefer a first-party driver; if you can, wire elasticsearch/elasticsearch directly behind a repository interface rather than adding a third abstraction layer.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource