Skip to content
Elasticsearch PHP integration for your Symfony project using Elastica.
Branch: master
Clone or download
XWB Merge pull request #1503 from Labstep/fix/delete-by-id-routing
Fixes: ObjectPersister not passing $routing to deleteManyByIdentifiers
Latest commit 4f830ed Mar 7, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Index templates support (#1343) Jan 31, 2019
src Fixes: ObjectPersister not passing $routing to deleteManyByIdentifiers Mar 6, 2019
tests Index templates support (#1343) Jan 31, 2019
.gitattributes split directory structure in doc, src and test Dec 15, 2017
.gitignore Upgrade PHP CS Fixer (#1307) Nov 29, 2017
.php_cs.dist Upgrade PHP CS Fixer (#1307) Nov 29, 2017
.scrutinizer.yml Update travis testing Aug 21, 2014
.travis.yml Update Jan 31, 2019
LICENSE remove Propel support Dec 17, 2017
composer.json Handle Elastica Transport errors (#1465) Jan 29, 2019


This bundle provides integration with Elasticsearch and Elastica with Symfony. Features include:

  • Integrates the Elastica library into a Symfony environment
  • Use JmsSerializer or Symfony Serializer to convert between PHP objects and Elasticsearch data
  • Index configuration for Elasticsearch, or send data without configuration to use the dynamic mapping feature of Elasticsearch
  • Listeners for Doctrine events for automatic indexing

Build Status Total Downloads Latest Stable Version Latest Unstable Version Scrutinizer Code Quality


Documentation for FOSElasticaBundle is in doc/


Installation instructions can be found in the documentation

Versions & Dependencies

Version 5 of the FOSElasticaBundle is compatible with Elasticsearch 5 and 6. It requires Symfony 3 or 4. When using Symfony Flex there is also a recipe to ease the setup. Earlier versions of the FOSElasticaBundle are not maintained anymore and only work with older versions of the dependencies. The following table shows the compatibilities of different versions of the bundle.

FOSElasticaBundle Elastica Elasticsearch Symfony PHP
[5.1] (master) ^5.3|^6 5.*|6.* ^3.4|^4 >=7.1
[5.0] (unmaintained) ^5.2|^6 5.*|6.* ^3.2|^4 >=5.6
[4.x] (unmaintained) 3.2.* 2.* ^2.8|^3.2 >=5.5
[3.2.x] (unmaintained) ^2.1 1.* ^2.3|^3 >=5.3


This bundle is released under the MIT license. See the included LICENSE file for more information.

You can’t perform that action at this time.