- Dropped support for PHP 7.4 and PHP 8.0.
- Dropped support for Symfony 5.4.
- [BC break] Method
FOS\ElasticaBundle\Elastica\Client::requestdoes not exist anymore. Please useFOS\ElasticaBundle\Elastica\Client::sendRequest. - [BC break] Method
FOS\ElasticaBundle\Elastica\Client::getIndexnow returnsFOS\ElasticaBundle\Elastica\Index. - [BC break] Arguments for the service
FOS\ElasticaBundle\Elastica\Clienthave changed. See definition ofFOS\ElasticaBundle\Elastica\Client::__construct. - [BC break] Client configuration now reflects configuration of
Elastica\Client. - [BC break] Index template configuration
index_templateoptiontemplateis renamed toindex_patternsand accepts array of strings. - [BC break] Arguments for the service
FOS\ElasticaBundle\Elastica\Client(fos_elastica.client..) are now named, instead of indexed. - [BC break] Configuration options:
host,port,urlare no longer available and replaced with singlehosts. - [BC break] Configuration options:
proxy,auth_type,aws_*,ssl,curl,persistent,compression,connectTimeoutare no longer available. - [BC break] Configuration
connectionStrategyis renamed toconnection_strategy. - [BC break] Event
PostElasticaRequestEventnow operates withPsr\Http\Message\RequestInterfaceinstead ofElastica\Request. - [BC break] Event
ElasticaRequestExceptionEventnow operates withPsr\Http\Message\RequestInterfaceinstead ofElastica\Request, andElastic\Elasticsearch\Exception\ElasticsearchExceptioninstead ofElastica\Exception\ExceptionInterface.
Main change is the configuration of the bundle:
- There are no
connectionslevel anymore. - Options
host,portandurlare replaced with optionhosts, which accepts array. - SSL configuration is provided within
client_configoption. - Other client options are configurable in
client_options. - Refer to new examples! Elastica HTTP client configuration