Changelog
Backward Compatibility Breaks
Elastica\IndexTemplatenow works only with new_index_templateAPI. You should useElastica\Templateto use the deprecated API #2274- Dropped support for PHP <8.1 #2246
- Removed 3rd
$methodargument from theElastica\SearchableInterface::searchandElastica\SearchableInterface::countas they are not unused anymore. The following classes are affected:Elastica\SearchandElastica\Index#2256 - Removed
Elastica\Requestclass as constants are not used anymore and no longer needed. #2256
Added
- Added support for Component Template #2274
- Added support for Index Template #2274
- Added Template class to target only legacy Template #2274
- Added support for PHP 8.5 #2253
Changed
Fixed
Elastica\Query\BoolQuery::toArrayno longer changes$this->_paramsto \stdClass when empty #2241- Fixed Client retries configuration to allow zero retries by changing condition from
> 0to>= 0#2278
Auto generated release notes
What's Changed
- [8.x] Fix readme badges by @malberts in #2238
- fix: do not mutate BoolQuery instance in toArray method by @MrkMrk00 in #2241
- Update Ubuntu version for testing to 24.04 by @ruflin in #2243
- Add elasticsearch 9 support by @sidz in #2246
- Add intstructions for Github Copilot by @ruflin in #2248
- Add unit test for Elastica\Query\FunctionScore::DECAY_EXPONENTIAL by @ruflin in #2249
- Upgrade PHPUnit from 9.5 to 10.5 by @sidz in #2251
- Update phpstan to 2.x by @sidz in #2252
- Support PHP 8.5 by @sidz in #2253
- Remove unused method argument in the Elastica\SearchableInterface methods in 9.x by @sidz in #2256
- Add CLAUDE.md file to repository by @ruflin in #2259
- Enhances AI instructions files by @ruflin in #2263
- Fix PHPStan and PHP-CS-Fixer Docker commands and PHP 8.4 compatibility by @ruflin in #2262
- Fix Elasticsearch cluster discovery configuration to ensure green health status by @ruflin in #2266
- Add Claude Code GitHub Workflow by @ruflin in #2264
- Support git worktree inside the repository by @ruflin in #2267
- Fix Makefile command issues to ensure all targets work properly by @ruflin in #2268
- Update default Elasticsearch version by @ruflin in #2270
- Update docker compose files to follow new recommendations, use latest… by @sidz in #2271
- Disable Claude PR reviews for now by @ruflin in #2275
- Add component and legacy Template, update IndexTemplate by @nyroDev in #2274
- [Rector] Apply TypedPropertyFromStrictConstructorRector rule by @sidz in #2272
- Add AGENTS.md to replace other similar files by @ruflin in #2280
- Fix: Allow zero retries in Client configuration by @ruflin in #2282
- Prepare 9.0.0 release by @ruflin in #2288
New Contributors
Full Changelog: 8.1.0...9.0.0