Backward Compatibility Breaks
- Added a default value to
Elastica\Aggregation\Range::setKeyed()andElastica\Aggregation\PercentilesBucket::setKeyed()#1876 - Removed type-hint to
Elastica\Aggregation\Percentiles::setMissing()argument #1875 - Allowed the Terms query to accept an array of
bool,float,intand/orstring#1872
Added
- Added
auth_typeparameter in the client class config to specify the type of authentication (allowed values arebasic, digest, gssnegotiate, ntlm) #1790 - Added
if_seq_no/if_primary_termto replaceversionfor optimistic concurrency control #1803 - Added
Elastica\Aggregation\PercentilesBucketaggregation #1806 - Added
weighted_avgto aggregations DSL #1814 - Added support for defining a connection pool with DSN. Example:
pool(http://127.0.0.1 http://127.0.0.2/bar?timeout=4)#1808 - Added
Elastica\Aggregation\Compositeaggregation #1804 - Added
symfony/deprecation-contractspackage to handle deprecations #1823 - Added
list_syntaxCS rule #1854 - Added
native_constant_invocationCS rule #1833 - Added
static_lambdaCS rule #1870 - Added
Elastica\Aggregation\DateRange::setTimezone()#1847 - Added endpoint options support to
Elastica\Index::create()#1859 - Added
Elastica\Aggregation\DateHistogram::setKeyed()#1876 - Added
Elastica\Aggregation\GeoDistance::setKeyed()#1876 - Added
Elastica\Aggregation\Histogram::setKeyed()#1876 - Added
Elastica\Aggregation\IpRange::setKeyed()#1876 - Added
Elastica\Aggregation\GeotileGridAggregation#1880 - Added
Elastica\Aggregation\Avg::setMissing(),Elastica\Aggregation\Cardinality::setMissing(),Elastica\Aggregation\DateRange::setMissing(),Elastica\Aggregation\DateHistogram::setMissing(),Elastica\Aggregation\ExtendedStats::setMissing(),Elastica\Aggregation\Histogram::setMissing(),Elastica\Aggregation\Max::setMissing(),Elastica\Aggregation\Min::setMissing(),Elastica\Aggregation\Stats::setMissing(),Elastica\Aggregation\Sum::setMissing(),Elastica\Aggregation\Terms::setMissing()#1876 - Supported
guzzlehttp/guzzle7.x #1816 - Supported PHP 8.0 #1794
- Supported BC break on
elasticsearch/elasticsearchversion7.4.0#1864
Changed
- Allowed
stringsuch aswait_forto be passed toAbstractUpdateAction::setRefresh#1791 - Allowed float values for connection timeout and connection connect-timeout, providing ms precision for those. Previous precision was second. #1868
- Changed the return type of
AbstractUpdateAction::getRefreshtoboolean|string#1791 - Reviewed options handling in
Elastica\Index::create()#1822 - Replaced deprecated
exceptionsrequest option byhttp_errorsrequest option in Guzzle transport #1817 - Run coding styles check on github action #1878
- Run unit tests on github action #1882
- Run functional tests on github action #1885
- Updated
php-cs-fixerto2.16.4#1830 - Updated
php-cs-fixerto2.16.7#1881 - Updated
php-cs-fixerto2.17.3#1895 - Updated
php-cs-fixerto2.18.2#1897 - Used
GuzzleHttp\RequestOptionsconstants for configuring request options #1820 - Used new alias endpoints classes #1839
- Used new cache endpoints classes #1840
- Used new ingest pipeline endpoints classes #1834
- Used new mapping endpoints classes #1845
- Used new nodes endpoints classes #1863
- Used new settings endpoints classes #1852
Deprecated
- Deprecated
Elastica\Aggregation\Range::setKeyedResponse(), usesetKeyed()instead #1848 - Deprecated
Elastica\Exception\ResponseException::getElasticsearchException(), usegetResponse()::getFullError()instead #1829 - Deprecated
Elastica\QueryBuilder\DSL\Aggregation::global_agg(), useglobal()instead #1826 - Deprecated
Elastica\Util::getParamName()#1832 - Deprecated all Processor class names in favor of suffixed class names #1893
- Deprecated Match query class and introduced MatchQuery instead for PHP 8.0 compatibility reason #1799
- Deprecated
version/version_typeoptions (deprecated in6.7.0) and addedif_seq_no/if_primary_termthat replaced it - Deprecated passing
boolornullas 2nd argument toElastica\Index::create()#1828
Removed
- Removed HHVM proxy detection #1818
Fixed
- Fixed issue 1789
- Fixed type-hint for
Elastica\QueryBuilder\DSL\Aggregation::sampler()not consistent with the underlying constructor call #1815 - Fixed
Elastica\Util::toSnakeCase()with first letter being lower cased #1831 - Fixed handling precision as string in
Elastica\Aggregation\GeohashGrid::setPrecision()#1884 - Fixed calling
Elastica\Aggregation\Composite::addAfter()with thenullvalue 1877 - Replaced
_routingand_retry_on_conflictbyroutingandretry_on_conflictinAbstractUpdateAction#1807