All Versions
44
Latest Version
Avg Release Cycle
103 days
Latest Release
-

Changelog History
Page 2

  • v7.0.0-beta2 Changes

    December 10, 2019

    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
  • v7.0.0-beta1 Changes

    October 31, 2019

    ๐Ÿš€ This is our first release in the 7.x cycle. It is compatible with Elasticsearch 7.x. Please review the breaking changes carefully. Most of them are related to the type removal in Elasticsearch.

    Backward Compatibility Breaks

    • The \Elastica\Query::$_suggest property has been renamed to $hasSuggest and is now private, it should not be used from extending classes #1679
    • \Elastica\Document expects a string as ID, not an int #1672.
    • โœ‚ Removed \Elastica\Query\GeohashCell query, use \Elastica\Query\GeoBoundingBox instead #1672.
    • ๐Ÿ—„ Deprecated usage of \Elastica\Type class, \Elastica\Index class must be used instead #1666
    • โœ‚ Removed \Elastica\Type class, \Elastica\Index class must be used instead #1666
    • ๐Ÿ‘ฎ Forced index names to string in \Elastica\Index::__construct() #1666
    • โœ‚ Removed Type query \Elastica\Query\Type #1666
    • โœ‚ Removed Elastica\Type class, Elastica\Index class must be used instead #1666
    • โœ‚ Removed type handling from Elastica\Search class #1666
    • โœ‚ Removed type handling from Elastica\Bulk and Elastica\Bulk\Action classes #1666
    • ๐Ÿ‘ฎ Forced index names to string in Elastica\Index::__construct() #1666
    • โœ‚ Removed Type query Elastica\Query\Type #1666
    • โฌ‡๏ธ Dropped support for PHP 7.0
    • โšก๏ธ \Elastica\AbstractUpdateAction::getOptions( $fields ) no longer supports the $underscore parameter, option names must match what elasticsearch expects.
    • โœ‚ Removed no longer supported \Elastica\Query\QueryString::setAutoGeneratePhraseQueries( $bool ) #1622
    • Replaced params._agg with state context variable in scripted metric aggregations
    • Camel Case and underscore parameters deprecated in 6.x have been removed
    • The parameter fields deprecated in 6.x has been removed from Bulk requestedit and Update request.
    • ๐Ÿšš The _parent field has been removed in favour of the join field.
    • hits.total is now an object in the search response hits.total
    • Elastica\Reindex does not return an Index anymore but a Response.
    • Elastica\Reindex->run() does not refresh the new Index after completion anymore. Use $reindex->setParam(Reindex::REFRESH, 'wait_for') instead.
    • 0๏ธโƒฃ Elastica\Search->search() and Elastica\Search->count() use request method POST by default. Same for Elastica\Index, Elastica\Type\AbstractType, Elastica\Type.
    • Elastica\Client $_config field is now a ClientConfiguration instead of an array
    • โœ‚ Removed \Elastica\Client::_log, \Elastica\Log and the log configuration option. Use the Psr\Log\LoggerInterface $logger client argument to customize logging.
    • ๐Ÿ”„ Changed all factory methods to make use of late static bindings by using static instead of self keyword. This is to increase extendability for classes with factory methods.

    ๐Ÿ›  Bugfixes

    • ๐Ÿ‘ Always set the Guzzle base_uri to support connecting to multiple ES hosts. #1618
    • ๐Ÿ“‡ Properly handle underscore prefixes in options and bulk request metadata (cf upstream. #1621
    • Preserve zeros while doing float serialization to JSON. #1635
    • โž• Add settings level on json to create an Index in all tests (it worked till 6.x but it shouldn't work)

    โž• Added

    • ๐Ÿ‘Œ support for elasticsearch-php 7.0
    • โž• Added ParentAggregation #1616
    • Elastica\Reindex missing options (script, remote, wait_for_completion, scroll...)
    • โž• Added AdjacencyMatrix aggregation #1642
    • โž• Added request method parameter to Elastica\SearchableInterface->search() and Elastica\SearchableInterface->count(). Same for Elastica\Search#1441
    • โž• Added support for Field Collapsing (Issue: #1392; PR: #1653)
    • ๐Ÿ‘Œ Support string DSN in \Elastica\Client constructor for config argument #1640
    • ๐Ÿ”ง Move Client configuration in a dedicated class
    • โž• Added callable type hinting to $callback in Client constructor. #1659
    • โž• Added setTrackTotalHits method to Elastica\Query#1663
    • ๐Ÿ‘ Allow metadata to be set on Aggregations (via AbstractAggregation::setMeta(array)). #1677

    ๐Ÿ‘Œ Improvements

    • Added native_function_invocation CS rule #1606
    • โœ… Elasticsearch test version changed from 6.5.2 to 6.6.1 #1620
    • Clear scroll context also when empty page was received #1660
  • v6.1.1 Changes

    January 29, 2019

    โž• Added

    • The preferred type name is _doc, so that index APIs have the same path as they will have in 7.0
    • โž• Added BucketSelector aggregation #1554
    • โž• Added DerivativeAggregation #1553
    • The preferred type name is _doc, so that index APIs have the same path as they will have in 7.0
    • ๐Ÿ‘• Introduced new version of PHP-CS-Fixer and new Lint travis step. #1555
    • โž• Added typed_keys support for Search queries #1603

    ๐Ÿ‘Œ Improvements

    • โฌ‡๏ธ Reduced memory footprint of response by not keeping the raw JSON data when JSON after JSON has been parsed. #1588

    ๐Ÿ—„ Deprecated

    • Index templates use index_patterns instead of template
  • v6.1.0 Changes

    Backward Compatibility Breaks

    • Made result sets adhere to \Iterator interface definition that they implement. Specifically, you need to call valid() on the result set before calling current(). When using foreach this is done by PHP automatically. When valid returns false, the return value of current is undefined instead of false. #1506
      • \Elastica\ResultSet::next returns void instead of \Elastica\Result|false
      • \Elastica\Bulk\ResponseSet::current returns \Elastica\Bulk\Response instead of \Elastica\Bulk\Response|false
      • \Elastica\Multi\ResultSet::current returns \Elastica\ResultSet instead of \Elastica\ResultSet|false

    โž• Added

    • โž• Added a transport class for mocking a HTTP 403 error codes, useful for testing response failures in inheriting clients #1529
    • 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](#1518)
    • implemented string_distance option in Term Suggestion #1543

    ๐Ÿ‘Œ Improvements

    • ๐Ÿ—„ Using Elastica\Query\FunctionScore::addRandomScoreFunction without $field parameter is deprecated since ES 6.0 and will fail since ES 7.0 #1522
    • โšก๏ธ Aggreation\Percentiles updated 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](#1352)
    • โšก๏ธ Aggregation\Percentiles have been updated since Elasticsearch 2.3. In this version compression, HDR histogram changed their implementations. The missing field has never been implemented. #1532

    Before

        "compression" : 200,
        "method" : "hdr",
        "number_of_significant_value_digits" : 3
    

    Now

        "tdigest": {
          "compression" : 200
        },
        "hdr": {
          "number_of_significant_value_digits" : 3
        }
    
  • v6.0.2 Changes

    โž• Added

    • โž• Added support for pipeline when indexing document. #1455
    • โž• Added support for multiple bucket sort orders for aggregations. #1480
    • โž• Added basic support for the Elasticsearch Task Api
    • โž• Added updateByQuery endpoint. #1499

    ๐Ÿ‘Œ Improvements

    • ๐Ÿ—„ Use source script field instead of deprecated (since ES 5.6) inline field. #1497
    • โšก๏ธ Updated Elasticsearch testing version to 6.2.4. #1501
  • v6.0.1 Changes

    ๐Ÿ›  Bugfixes

    โž• Added

  • v6.0.0 Changes

    Backward Compatibility Breaks

    โž• Added

    • โž• Added clear() to Scroll for closing search context on ES manually
    • โž• Added Elastica\Aggregation\StatsBucket

    ๐Ÿ‘Œ Improvements

    • Clear search context on ES after usage in Scroll
  • v6.0.0-beta1 Changes

    Backward Compatibility Breaks

    ๐Ÿ›  Bugfixes

    • Enforce Content-Type requirement on the layer Rest, a PR on Elastica #1301 solved it (it has been implemented only in the HTTP Transport), but it was not implemented in the Guzzle Transport. #1349
    • Scroll no longer does an extra iteration both on an empty result and on searches where the last page has a significantly smaller number of results than the pages before it.

    โž• Added

    • โž• Added Query\SpanContaining, Query\SpanWithin and Query\SpanNot #1319
    • Implemented Pipeline and Processors. #1373
    • โš  In PHP 7.2 count() now raises a warning when an invalid parameter is passed. Only arrays and objects implementing the Countable interface should be passed. #1378
  • v5.3.6 Changes

    August 29, 2019

    ๐Ÿ›  Bugfixes

    • Corrected Histogram aggregations to allow for string interval #1655

    ๐Ÿ‘Œ Improvements

    • โšก๏ธ Update elasticsearch-php dependency to 5.4 #1648
    • โž• Add testing on PHP 7.3 on Travis #1647
  • v5.3.5 Changes

    January 28, 2019

    โž• Added

    • โœ… [Backported] Added a transport class for mocking a HTTP 403 error codes, useful for testing response failures in inheriting clients #1592