- Can I use floriansemm/solr-bundle in a Laravel application?
- Not as-is. It is a Symfony bundle built around Symfony DI container bootstrapping, bundle configuration, and Doctrine ORM event listeners, so Laravel cannot install and use it as a normal Composer dependency. The only realistic Laravel path is to vendor the source and harvest the Solr client and query-building parts into a Laravel service provider.
- Does SolrBundle support Laravel Scout or Eloquent model indexing?
- No. The package maps Doctrine entities to Solr documents with annotations and uses Doctrine postPersist, postUpdate, and postRemove hooks for automatic index synchronization. Laravel's default ORM is Eloquent, so there is no out-of-the-box attachment point for that synchronization. Laravel Scout is a separate system and would require a fresh integration or a Solr engine driver.
- How do I install and configure SolrBundle for Laravel?
- There is no supported Laravel installation or configuration path. The bundle expects Symfony bundle config, DI services, and Doctrine integration rather than Laravel's service-provider lifecycle and config repository. For Laravel, you would need to vendor the source and extract the Solr client and query layer into your own service provider.
- Which Laravel and PHP versions are supported by floriansemm/solr-bundle?
- There is no Laravel version support because this is a Symfony bundle, and its last release was 2018-11-15. It is almost certainly constrained to Symfony 2.x/3.x-era APIs and PHP 5.6/7.0–7.1 syntax. Expect deprecation noise or hard failures under PHP 8.2+, so verify this in a fork spike before planning any Laravel integration.
- Is floriansemm/solr-bundle maintained or abandoned?
- Treat it as effectively abandoned: the last release was 2018-11-15, with roughly seven years without a tag at the time of assessment. There are zero dependents, which means no community smoke-testing or shared patches. Assume no upstream responsiveness and audit any harvested code yourself.
- What are the best alternatives for Apache Solr search in Laravel?
- Evaluate solarium/solarium used directly inside a Laravel service provider, or Laravel Scout with a Solr engine driver. Scout is more idiomatic for model indexing, but driver quality varies; direct Solarium gives you control of a thin Laravel wrapper. This bundle is not a supported Laravel alternative because it is Symfony and Doctrine specific.
- Can I reuse the Solr query builder and field mapping from this bundle?
- Yes, but the transferable value is narrow: query construction, field mapping, and index or schema handling are the parts worth harvesting. Vendor the source through a Composer path repository, keep the MIT headers, and discard the Symfony bundle and Doctrine listener glue. Budget roughly a one-to-two-day senior-engineer spike, contingent on the code running under modern PHP.
- Does SolrBundle work with Solr 8 or Solr 9?
- Solr 8/9 compatibility is unverified. The bundled Solarium versions likely predate Solr's JSON Request API becoming the norm, so the package may emit legacy query-string or XML-era requests. Test against your exact Solr server version before assuming it will work.
- How does automatic index synchronization work without Doctrine in Laravel?
- The bundle uses Doctrine ORM event listeners or subscribers for postPersist, postUpdate, and postRemove to keep the Solr index synchronized. Eloquent has no out-of-the-box attachment point for those Doctrine hooks. You would need to port change detection and commit ordering to Eloquent observers or model events, or write fresh synchronization logic.
- What production and testing risks should I check before forking SolrBundle for Laravel?
- Treat an unmaintained bundle as a standing security audit item because it parses external config and issues network calls, and expect no upstream patches. There are no built-in Laravel testing helpers, so a fork needs its own fake Solr client plus integration tests against your target Solr version. Keep the harvested surface small through a path repository, or prefer a maintained Solarium wrapper for production.