This release is compatible with Elasticsearch 5.x and was tested with elasticsearch 5.2.2.
This release adds the official elasticsearch client elasticsearch-php as a dependency. All endpoints from the official client can now also be used in Elastica through requestEndpoint.
Bugfixes
- Fix reading bool index settings like
\Elastica\Index\Settings::getBlocksWrite. Elasticsearch returns all settings as strings and does not normalize bool values. The getters now return the right bool value for whichever string representation is used like ‘true’, ‘1’, ‘on’, ‘yes’. #1251 - Fix for QueryBuilder version check
\Elastica\QueryBuilder\Version\Version240.phpadded all new query types to queries array. #1266 #1269 - Do not modify the original query in
\Elastica\Search::count. #1276
Added
- Added
\Elastica\Client::requestEndpoint,\Elastica\Index::requestEndpoint,\Elastica\Type::requestEndpointthat allow make requests with official client Endpoint usage. #1275 - Added
\Elastica\Aggregation\GeoBoundsthat computes the bounding box containing all geo_point values for a field. #1271 - Added
\Elastica\Query\MatchNonethe inverse of MatchAll. #1276
Improvements
- added support for the “explain” flag of AnalyzeAPI #1254
- added support for the “request_cache” search option #1243
- skip sending “retry_on_conflict=0” default query param to improve compatibility with Amazon Elasticsearch #1047
- optimized
\Elastica\Scrollto avoid one request #1273 - Update elasticsearch-php dependency to 5.2.0 #1245
- Update elasticsearch testing dependency to 5.2.2 #1245
Deprecated
- Deprecated
\Elastica\Exception\ElasticsearchExceptionwhich is irrelevant since Elasticsearch now exposes the errors as a structured array instead of a single string. Use\Elastica\Exception\ResponseException::getResponse::getFullErrorinstead. - Deprecated both
prefix_len&min_word_lenfields inElastica\Suggest\CandidateGenerator\DirectGeneratoras these now return errors when using the phrase suggester to querying terms. Useprefix_length&min_word_lengthinstead #1282 Use\Elastica\Exception\ResponseException::getResponse::getFullErrorinstead. #1251