Skip to content

Releases: cakephp/elastic-search

CakePHP Elasticsearch 5.0.0

03 Nov 15:31

Choose a tag to compare

The CakePHP core team is proud to announce the immediate availability of CakePHP Elasticsearch 5.0.0. This is a major release for the 5.x branch that includes breaking changes and new features.

Breaking Changes

  • Elastica 9.x Support: Upgraded from ruflin/elastica 7.x to 9.x, bringing support for Elasticsearch 9.x.
    • As Elastica now uses elasticsearch-php the client configuration using the hosts array format could be used instead of the legacy host/port or uri format (still working).
  • CakePHP 5.2+ Required: Minimum CakePHP version is now 5.2.0.
  • PHP 8.1+ Required: Dropped support for older PHP versions.
  • IndexRegistry Removed: The deprecated IndexRegistry class has been removed in favor of IndexLocator with IndexLocatorAwareTrait.
  • Removed Deprecated Methods: All methods deprecated in 3.x and 4.x have been removed:
    • QueryBuilder::and_() and QueryBuilder::or_() - Use and() and or() instead
    • Embedded::property(), entityClass(), indexClass() - Use getter/setter methods instead
    • Query::repository() - Use setRepository() instead

New Features

  • IndexLocatorAwareTrait: New trait providing access to the IndexLocator with a fetchIndex() method, aligning with the ORM's fetchTable() pattern.
  • InvalidPropertyInterface Support: Documents now support InvalidPropertyInterface for validation error handling.
  • Track Total Hits: Added Query::trackTotalHits() method for control over Elasticsearch's track_total_hits feature.
  • FQDN Class Support: IndexLocator now supports fully-qualified class names for index loading.

Improvements

  • Strict Typing: Improved strict types throughout the codebase.
  • Code Quality: Removed PHPStan baseline, added Rector support, and improved test coverage to +- 90%.
  • PHPUnit 10-12 Support: Updated test suite to support PHPUnit 10.5+, 11.5+, and 12.1+.
  • Marshaller Alignment: Better alignment with CakePHP ORM patterns.
  • Improved Type Hints: Enhanced type hinting across the codebase.

Full Changelog: 4.0.1...5.0.0


As always, a huge thanks to all the community members that helped make this release happen.

CakePHP Elasticsearch 4.0.1

10 Sep 03:47
1dc2871

Choose a tag to compare

What's Changed

  • 4.x: change composer.json to cake5 stable version by @LordSimal in #316

Full Changelog: 4.0.0...4.0.1

CakePHP ElasticSearch 4.0.0

10 Sep 03:20

Choose a tag to compare

First version compatible with CakePHP 5.0

What's Changed

New Contributors

Full Changelog: 3.4.4...4.0.0

CakePHP ElasticSearch 3.4.4

27 Sep 02:34
f52cd04

Choose a tag to compare

What's Changed

  • Fix elastic logger to avoid debug kit panel exception by @ajibarra in #294

New Contributors

Full Changelog: 3.4.3...3.4.4

CakePHP ElasticSearch 3.4.3

12 Aug 13:33
76444aa

Choose a tag to compare

What's Changed

Full Changelog: 3.4.2...3.4.3

3.4.2

26 Feb 03:01
3090f73

Choose a tag to compare

What's Changed

Full Changelog: 3.4.1...3.4.2

CakePHP ElasticSearch 3.4.1

20 Feb 04:01
0fab06d

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 3.4.0...3.4.1

CakePHP ElasticSearch 3.4.0

24 Oct 06:11
3b2bd5b

Choose a tag to compare

What's Changed

  • Requires CakePHP 4.3
  • Add support for CakePHP 4.3 fixture system
  • Add IndexRegistry::$fallbackClassName by @andrii-pukhalevych in #266

New Contributors

Full Changelog: 3.3.0...3.4.0

CakePHP ElasticSearch 3.3.0

04 Jul 02:32
3.3.0
c14d06b

Choose a tag to compare

  • Compatible with CakePHP 4.x
  • ElasticSearch 7.x

CakePHP ElasticSearch 2.0.2

18 Feb 00:10
79a9fbc

Choose a tag to compare

Changes

  • Added cakephp/cakephp dependency to avoid using with wrong version