This release is compatible with Elasticsearch 6.x and was tested with elasticsearch 6.2.4.
Backward Compatibility Breaks
- Made result sets adhere to
\Iteratorinterface definition that they implement. Specifically, you need to callvalid()on the result set before callingcurrent(). When usingforeachthis is done by PHP automatically. Whenvalidreturns false, the return value ofcurrentis undefined instead of false. #1506\Elastica\ResultSet::nextreturnsvoidinstead of\Elastica\Result|false\Elastica\Bulk\ResponseSet::currentreturns\Elastica\Bulk\Responseinstead of\Elastica\Bulk\Response|false\Elastica\Multi\ResultSet::currentreturns\Elastica\ResultSetinstead of\Elastica\ResultSet|false
Added
- Added a transport class for mocking a HTTP 403 error codes, useful for testing response failures in inheriting clients
- Field param for
Elastica\Query\FunctionScore::addRandomScoreFunction#1529 - Index Recovery : the indices recovery API provides insight into on-going index shard recoveries. It was never been implemented into Elastica. #1537
- add parent_id (reference #1518) in QueryBuilder. #1533)
- implemented
string_distanceoption in Term Suggestion #1543
Improvements
- Using
Elastica\Query\FunctionScore::addRandomScoreFunctionwithout$fieldparameter is deprecated since ES 6.0 and will fail since ES 7.0 #1522 Aggreation\Percentilesupdated to a newer version of the Algorithm (T-Digest 3.2) and Percentiles results changed a bit Have a look at here, so updated tests in order not to fail. #1531)Aggregation\Percentileshave been updated since Elasticsearch 2.3. In this versioncompression, HDR histogramchanged their implementations. Themissingfield has never been implemented. #1532Before
json "compression" : 200, "method" : "hdr", "number_of_significant_value_digits" : 3Now
json "tdigest": { "compression" : 200 }, "hdr": { "number_of_significant_value_digits" : 3 }- Never implemented the method Missing on
Aggregation\Percentiles#1532