Elastica v7.0.0-beta2 Release Notes

Release Date: 2019-12-10 // over 4 years ago
  • Backward Compatibility Breaks

    • The method Index::deleteById() does not throw an NotFoundException when deleting a non-existing document #1732
    • ๐Ÿšš The class \Elastica\QueryBuilder\Version\Version240 has been moved to \Elastica\QueryBuilder\Version\Version700 #1693
    • โฌ‡๏ธ Dropped support for PHP 7.1 #1703

    ๐Ÿ›  Bugfixes

    • Renamed \Elastica\Suggest\Term deprecated option prefix_len to prefix_length #1707
    • The \Elastica\Query\GeoPolygon::count() method now returns the count of points passed to the filter #1696
    • ๐Ÿ›  Fix issue in \Elastica\Client::request() which causes request data to not be sent to the logger #1682

    โž• Added

    • Added geo_bounding_box, geo_polygon, match_phrase, match_phrase_prefix, match_none to \Elastica\QueryBuilder\Version\Version700 #1702
    • โž• Added \Elastica\ResultSet::getTotalHitsRelation() to get relation for total hits #1694
    • โž• Added Sampler aggregation #1688

    ๐Ÿ‘Œ Improvements

    • โœ… Launched tests with PHP 7.4 #1704
    • โœ… Launched local tests with PHP 7.2 by default #1725
    • Added nullable_type_declaration_for_default_null_value, no_alias_functions CS rules #1706
    • ๐Ÿ”ง Configured visibility_required CS rule for constants #1723
    • โž• Added Collapse DSL to QueryBuilder #1724