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
Elastica Bundle

Elastica Bundle Laravel Package

short-edition/elastica-bundle

A Symfony bundle that integrates the Elastica client for Elasticsearch: define indexes and mappings in configuration, index documents automatically, and run full-text queries through repository services to add fast, scalable search to your PHP application.

View on GitHub
Deep Wiki
Context7

Elasticsearch PHP integration for your Symfony project using Elastica.

Frequently asked questions about Elastica Bundle
Can I use short-edition/elastica-bundle in a Laravel application?
Not directly. It is a Symfony bundle built around Symfony's dependency injection container, bundle registration, compiler passes, and Symfony Console commands, none of which Laravel provides. Making it work in Laravel would require a custom adapter project rather than a Composer install. For Laravel, use Laravel Scout with a maintained Elasticsearch driver or the official Elasticsearch PHP client behind a repository interface.
Is short-edition/elastica-bundle a Laravel package or a Symfony bundle?
It is a Symfony bundle. It is a fork of friendsofsymfony/elastica-bundle, also known as FOSElasticaBundle, and integrates the Elastica client library into Symfony's service container. It is not designed for Laravel and does not provide Laravel service providers, facades, or Artisan commands.
What should Laravel developers use instead for Elasticsearch search?
The baseline is laravel/scout with a maintained Elasticsearch driver such as babenkoivan/scout-elasticsearch-driver or matchish/laravel-scout-elasticsearch. These packages are Eloquent-native, version-tracked, and supported. Alternatively, wrap the official elasticsearch/elasticsearch client in a repository interface if you need full control.
How do I install short-edition/elastica-bundle?
You would install it with Composer using the package name short-edition/elastica-bundle. In a Symfony application you would then register the bundle in config/bundles.php and configure connections, indexes, and mappings in YAML or PHP config. There is no Laravel installation path because Laravel's package discovery and service provider system do not apply.
Which Laravel versions does short-edition/elastica-bundle support?
None. The package does not target Laravel and has no Laravel version constraints or compatibility matrix. It targets Symfony and depends on Symfony components, Elastica, and a compatible Elasticsearch instance. Laravel developers should not expect Laravel 9, 10, or 11 support.
Does short-edition/elastica-bundle auto-index Eloquent models?
No. Its automatic indexing layer is built on Doctrine event subscribers, so it reacts to Doctrine entity persist, update, and delete events. Eloquent models do not trigger those events, so the subscriber layer is inert in a Laravel application. You would have to build your own Eloquent observer or model event integration.
Is short-edition/elastica-bundle maintained and safe for production?
The repository shows zero stars, zero dependents, and no visible downstream usage, which strongly suggests a private patch fork rather than a maintained product. It carries the upstream FOSElasticaBundle name, so you should check Packagist presence, release tags, CI status, and the maintainer of record before considering it. For production, prefer upstream friendsofsymfony/elastica-bundle on Symfony or a maintained Laravel Scout driver on Laravel.
What Elasticsearch versions does short-edition/elastica-bundle support?
That depends entirely on the Elastica version pinned by the fork and the upstream commit it is based on. Elastica's client constrains which Elasticsearch majors you can run, such as 7.x versus 8.x or OpenSearch. Because the fork may lag upstream, an Elasticsearch infrastructure upgrade could be coupled to a library upgrade. Verify the exact Elastica, Elasticsearch, PHP, and Symfony version constraints before adopting it.
How does short-edition/elastica-bundle compare to Laravel Scout with an Elasticsearch driver?
They target different frameworks. This bundle gives Symfony applications declarative index and mapping configuration, Doctrine auto-indexing, and populate commands through the Symfony container. Laravel Scout gives Eloquent-native search with drivers that are maintained for Laravel and tracked against Laravel releases. For a Laravel codebase, Scout with a maintained Elasticsearch driver is the lower-risk and lower-effort choice.
What is the difference between short-edition/elastica-bundle and friendsofsymfony/elastica-bundle?
This package is a fork of friendsofsymfony/elastica-bundle and still carries the upstream name in the repository, which usually signals a private patch fork. Unless the fork carries a documented fix you need, use upstream friendsofsymfony/elastica-bundle on Symfony. If you do need the fix, upstream it and drop the fork to avoid inheriting maintenance and security response.
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.
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle