Elastica

A PHP client for elasticsearch.

Fork me on GitHub

Release 2.2.0

Elastica 2.2.0 (download). This release is compatible with elasticsearch 1.6.0.

Backward Compatibility Breaks

  • Usage of constant DEBUG and method Elastica\Util::debugEnabled is removed. #868
  • Elastica\Response::getTransferInfo will not return “request_header” by default. #868
  • The Image Plugin is currently not compatible with Elasticearch 1.6.0

Bugfixes

  • Fixed segmentation fault in PHP7 #868
  • Removed deprecation for Elastica\Type::deleteByQuery #875

Improvements

  • CallbackStrategy now will accept any callable as callback, not only instance of Closure. #871
  • StrategyFactory now will try to find predefined strategy before looking to global namespace. #877
  • Update elasticsearch dependency to elasticsearch 1.6.0 https://www.elastic.co/downloads/past-releases/elasticsearch-1-6-0
  • All elasticsearch plugin dependencies were updated to the newest version.
  • Methods of classes in QueryBuilder\DSL namespace now have exact same signatures as corresponding constructors. #878
  • Constructor of Aggregation\Filter now accepts filter as second parameter #878
  • Constructor of Filter\AbstractMulti (BoolAnd, BooldOr) now accepts array of filters as parameter #878
  • Constructor of Query\Match now accepts arguments #878
  • Coverage Reporting improved with Codecov #888
  • Added ‘query_cache’ option for search #886

Dependencies

Project Version Required
Elasticsearch 1.6.0 yes
Elasticsearch mapper attachments plugin 2.6.0 no
Elasticsearch thrift transport plugin 2.6.0 no
Elasticsearch memcached transport plugin 2.6.0 no
Elasticsearch geocluster facet plugin 0.0.12 no
Elasticsearch image plugin 1.4.0 no