Backward Compatibility Breaks
- If you're NOT using composer to manage your libraries: the root directory of the library's source code moved from
lib/Elastica/
tosrc/
. - The
Wildcard::setValue()
changed its signature: use it to set the value of the wildcard query only. - The
Wildcard
Query's constructor now requires thename
andvalue
properties. - The
Terms
Query's constructor now requires thefield
andterms
properties.
Added
- Added
AbstractTermsAggregation::setIncludeAsExactMatch()
#1766 - Added
AbstractTermsAggregation::setExcludeAsExactMatch()
#1766 - Added
AbstractTermsAggregation::setIncludeWithPartitions()
#1766 - Added
Elastica\Reindex->setPipeline(Elastica\Pipeline $pipeline): void
. The link between the reindex and the pipeline is solved whenrun()
is called, and thus the pipeline given doesn't need to be created before callingsetPipeline()
#1752 - Added
Elastica\Reindex->setRefresh(string $value): void
. It acceptsREFRESH_*
constants from its class #1752 and #1758 - Added
Elastica\Reindex->setQuery(Elastica\Query\AbstractQuery $query): void
#1752 - Added constants
PIPELINE
,REFRESH_TRUE
,REFRESH_FALSE
,REFRESH_WAIT_FOR
,SLICES
andSLICES_AUTO
toElastica\Reindex
#1752 - Added
Elastica\Pipeline->getId(): ?string
#1752 - Added
Elastica\Aggregation\ExtendedStatsBucket
aggregation #1756
Changed
- Changed
Terms::setTerms()
signature: it now accepts a list of strings only #1765 - Changed
Terms::setTermsLookup()
signature:index
,path
andid
are now required arguments #1765 - Changed
Wildcard::setValue()
and constructor's signature: added more specificWildcard::setBoost()
andWildcard::setRewrite
methods - Updated PHP coding standards to adhere to PSR-12 #1760
- Updated to PHPUnit v8.5 #1759
- Refactored code structure: use
src/
andtests/
folders #1755 - Require elastica-php library >= v7.1.1, fixes an issue on Ingestion/Put() type-hinting
- Require guzzle >= v6.3 as development library: fixes issues on PHP >= 7.2
- Require phpunit >= v7.5, fixes deprecations in with PHP 7.3
- Scroll is now throwing an exception when calling
current()
on an invalid iteration: always callvalid()
before
accessing the current item, as documented in PHP's Iterator documentation #1749