Releases: cakephp/elastic-search
Releases · cakephp/elastic-search
CakePHP Elasticsearch 5.0.0
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/elastica7.x to 9.x, bringing support for Elasticsearch 9.x.- As Elastica now uses elasticsearch-php the client configuration using the
hostsarray format could be used instead of the legacyhost/portoruriformat (still working).
- As Elastica now uses elasticsearch-php the client configuration using the
- 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
IndexRegistryclass has been removed in favor ofIndexLocatorwithIndexLocatorAwareTrait. - Removed Deprecated Methods: All methods deprecated in 3.x and 4.x have been removed:
QueryBuilder::and_()andQueryBuilder::or_()- Useand()andor()insteadEmbedded::property(),entityClass(),indexClass()- Use getter/setter methods insteadQuery::repository()- UsesetRepository()instead
New Features
- IndexLocatorAwareTrait: New trait providing access to the
IndexLocatorwith afetchIndex()method, aligning with the ORM'sfetchTable()pattern. - InvalidPropertyInterface Support: Documents now support
InvalidPropertyInterfacefor validation error handling. - Track Total Hits: Added
Query::trackTotalHits()method for control over Elasticsearch'strack_total_hitsfeature. - FQDN Class Support:
IndexLocatornow 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
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
First version compatible with CakePHP 5.0
What's Changed
- Add a local development environment for running tests by @markstory in #289
- Remove usage QueryTrait by @markstory in #292
- Pass refresh parameter in primary save/saveMany/delete requests by @andrii-pukhalevych in #297
New Contributors
- @LordSimal made their first contribution in #313
Full Changelog: 3.4.4...4.0.0
CakePHP ElasticSearch 3.4.4
CakePHP ElasticSearch 3.4.3
What's Changed
- 3.x search upgrade preparation by @ndm2 in #285
- Update source files path. by @ndm2 in #287
- Add locator by @markstory in #290
Full Changelog: 3.4.2...3.4.3
3.4.2
What's Changed
- Improve type hints in Index and by @andrii-pukhalevych in #279
- Remove mocks from ResultSet tests. by @markstory in #280
- Fix bug in
Index::saveMany()by @andrii-pukhalevych in #282 - Use
MatchQueryinstead of Match by @othercorey in #281
Full Changelog: 3.4.1...3.4.2
CakePHP ElasticSearch 3.4.1
CakePHP ElasticSearch 3.4.0
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
- @andrii-pukhalevych made their first contribution in #263
Full Changelog: 3.3.0...3.4.0
CakePHP ElasticSearch 3.3.0
- Compatible with CakePHP 4.x
- ElasticSearch 7.x
CakePHP ElasticSearch 2.0.2
Changes
- Added cakephp/cakephp dependency to avoid using with wrong version