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

Changelog History
Page 3

  • v5.0.0 Changes

    πŸ›  Backward Compatibility Fixes

    • ⚑️ Updated Elastica\Test\Suggest\CompletionTest now payload and output are removed
    • Updated Elastica\Test\TypeTest::testGetDocumentWithFieldsSelection The stored_fields parameter will only return stored fields — it will no longer extract values from the _source
    • βœ‚ remove _shutdown for Node and Cluster as deprecated

    πŸ›  Bugfixes

    • ⏱ Query options such as "timeout" or "terminate_after" should not be ignored when using Multi\Search

    βž• Added

    πŸ‘Œ Improvements

    • πŸ‘» \Elastica\JSON throws exception with readable message instead of errno
    • πŸ‘€ \Elastica\JSON::stringify throws \Elastica\Exception\JSONParseException on error
  • v5.0.0-beta1 Changes

    Backward Compatibility Breaks

    • ⚑️ Update elasticsearch dependency to 5.0
    • Replace flush refresh param with a options array
    • πŸ“‡ Rename Mapping::setFields to Mapping::setStoredFields
    • βœ… Removing all deprecated filters including tests. Use queries instead.
    • Remove deprecated Elastica\Script*.php classes. Use Elastica\Script* instead.
    • βœ‚ Remove Elastica/Query/Image.php and test/Elastica/Query/ImageTest.php, no more support for image-plugin.
    • βœ‚ Remove Elastica/Query/Filtered.php and test/Elastica/Query/FilteredTest.php and all uses from code.
    • βœ‚ Remove index.merge.policy.merge_factor, and set/get MergePolicy as it looks deprecated from ES 1.6
    • βž• Add new "Percolate query" functionality and tests
    • βœ‚ Remove in Elastica\AbstractUpdateAction Option "percolate", getter and setter as deprecated as of ES 1.3. Use Percolator instead.
    • πŸ—„ Remove in Elastica\Aggregation\DateHistogram Option "pre_zone" is deprecated as of ES 1.5. Use "time_zone" instead
    • πŸ—„ Remove in Elastica\Aggregation\DateHistogram Option "post_zone" is deprecated as of ES 1.5. Use "time_zone" instead.
    • Remove in Elastica\Aggregation\DateHistogram Option "pre_zone_adjust_large_interval" is deprecated as of ES 1.5. Use "time_zone" instead.
    • βœ‚ Remove in Elastica\Aggregation\DateHistogram Option "pre_offset" is deprecated as of ES 1.5. Use "offset" instead.
    • βœ‚ Remove in Elastica\Aggregation\DateHistogram Option "post_offset" is deprecated as of ES 1.5. Use "offset" instead.
    • βœ‚ Remove Elastica\Document::add as deprecated. Use Elastica\Document::set instead
    • βœ‚ Remove Elastica\Document::setScript() is no longer available as of 0.90.2. See http://elastica.io/migration/0.90.2/upsert.html to migrate.
    • βœ‚ Remove Elastica\Document::getScript() is no longer available as of 0.90.2. See http://elastica.io/migration/0.90.2/upsert.html to migrate.
    • βœ‚ Remove Elastica\Document::hasScript() is no longer available as of 0.90.2. See http://elastica.io/migration/0.90.2/upsert.html to migrate.
    • βœ‚ Remove Elastica/Query::setLimit as deprecated. Use the Elastica/Query::setSize() method
    • βœ‚ Remove Elastica\Query\Builder
    • βœ‚ Remove Elastica\Query\Fuzzy::addField as deprecated. Use Elastica\Query\Fuzzy::setField and Elastica\Query\FuzzysetFieldOption instead.
    • βœ‚ Remove Elastica\Query::setIds as deprecated. Use Elastica\Query::like instead.
    • βœ‚ Remove Elastica\Query::setLikeText as deprecated. Use Elastica\Query::like instead.
    • Remove Elastica\Query Option "percent_terms_to_match" is deprecated as of ES 1.5. Use "minimum_should_match" instead.
    • βœ‚ Remove Elastica\QueryBuilder\DSL\Query "More Like This Field" query is deprecated as of ES 1.4. Use MoreLikeThis query instead.
    • πŸ”„ Changed visibility from protected to private Elastica\ResultSet::$_position as accessing this property in an extended class is deprecated.
    • πŸ”„ Changed visibility from protected to private Elastica\ResultSet::$_response as accessing this property in an extended class is deprecated.
    • πŸ”„ Changed visibility from protected to private Elastica\ResultSet::$_query as accessing this property in an extended class is deprecated.
    • πŸ”„ Changed visibility from protected to private Elastica\ResultSet::$_results as accessing this property in an extended class is deprecated.
    • βœ‚ Removed Elastica\ResultSet::$_timedOut as deprecated. Use ResultSet->hasTimedOut() instead.
    • βœ‚ Removed Elastica\ResultSet::$_took as deprecated. Use ResultSet->hasTimedOut() instead.
    • βœ‚ Removed Elastica\ResultSet::$_totalHits as deprecated. Use ResultSet->hasTimedOut() instead.
    • βœ‚ Removed Elastica\Type::delete() It is no longer possible to delete the mapping for a type. Instead you should delete the index and recreate it with the new mappings.
    • βœ‚ Removed Elastica\Query\Builder as deprecated. Use new Elastica\QueryBuilder instead.
    • βœ‚ Removed Elastica\Percolator as deprecated. Use new Elastica\Query\Percolate instead.
    • πŸ”„ Changed Elastica\Index::deleteByQuery() to use new API https://www.elastic.co/guide/en/elasticsearch/reference/5.0/docs-delete-by-query.html
    • βœ‚ Remove Elastica\ScanAndScroll and test, Scan search type is removed from ElasticSearch 5.0.
    • βœ‚ Remove support for PHP 5.4 and 5.5. Require at least PHP 5.6 #1202
    • βœ‚ Remove groovy as default scripting language
    • βœ‚ Remove search_type=count as it is removed in Elasticsearch 5.0
    • πŸ—„ Remove fielddata_fields as it has been deprecated in ES5, use parameter docvalue_fields instead

    βž• Added

    • Elastica\QueryBuilder\DSL\Query::exists
    • Elastica\QueryBuilder\DSL\Query::type

    πŸ‘Œ Improvements

    • βž• Add a constant for the expression language.
    • Health::getIndices returns key=>value result, where key === $indexName. $cluster->getHealth()->getIndices()[$indexName] // or $indices = $cluster->getHealth()->getIndices(); $indices[$indexName]
    • βž• Added a Query::setTrackScores method
    • βœ… Implemented painless as default scripting language in tests
    • ⚑️ Updated Dockerfile and elasticsearch.yml to allow inline.script: true
    • ⚑️ Updated some Script function to use groovy as now default scripting is painless
      • Elastica\Test\Aggregation\ScriptTest::testAggregationScript
      • Elastica\Test\Aggregation\ScriptTest::testAggregationScriptAsString
      • Elastica\Test\Query\FunctionScoreTest::testScriptScore
      • Elastica\Test\BulkTest::testUpdate
      • Elastica\Test\ClientTest::testUpdateDocumentByScript
      • Elastica\Test\ClientTest::testUpdateDocumentByScriptWithUpsert
      • Elastica\Test\ClientTest::testUpdateDocumentPopulateFields
      • Elastica\Test\ClientTest::testUpdateDocumentPopulateFields
      • Elastica\Test\TypeTest::testUpdateDocument
      • Elastica\Test\TypeTest::testUpdateDocumentWithIdForwardSlashes
      • Elastica\Test\TypeTest::testUpdateDocumentWithParameter
      • Elastica\Test\TypeTest::testUpdateDocumentWithFieldsSource
    • βœ… Composer installations will no longer include tests and other development files.
  • v3.2.4 Changes

    March 05, 2019
    • ⚠ 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
      2018-12-19
    • βž• Added codecov configuration
  • v3.2.3 Changes

    πŸ›  Bugfixes

    • πŸ— Query builder is now compatible with Elasticsearch 2.X

    βž• Added

    • Elastica\Aggregation\BucketScript
    • Elastica\Aggregation\SerialDiff
    • Elastica\Query\InnerHits

    πŸ‘Œ Improvements

    • Elastica\Client constructor now accepts a transport of fully qualified name. #1169
    • ⚑️ Update Elasticsearch dependency to 2.4.0
  • v3.2.2 Changes

    πŸ›  Backward Compatibility Fixes

    πŸ›  Bugfixes

    • Set HTTP headers on each request preventing server error if persistent connection is enabled and compression enabled and later disabled for the same connection.
    • βœ‚ Removed int type hinting in setMinimumMatch (Terms Query): it should also allow string. #1151

    βž• Added

    • Elastica\QueryBuilder\DSL\Query::geo_distance
    • Elastica\Aggregation\GeoCentroid #1150
    • Multi value field param for decay function.
    • Elastica\Client::getVersion #1152
    • βž• Added support for terminate_after parameter in search queries #1168

    πŸ‘Œ Improvements

    • 0️⃣ Set PHP 7.0 as default development version
    • Get the root reason from Elasticsearch's error JSON, when available #1111
    • ⚑️ Optimize memory usage for Http Adapter #1161

    πŸ”„ Changed

    • βœ‚ Remove JSON_ELASTICSEARCH constant as not needed anymore
  • v3.2.1 Changes

    πŸ›  Backward Compatibility Fixes

    • 🚚 Reintroduced properties in ResultSet removed in 3.2.0 as deprecated properties to be removed in 4.0

    πŸ›  Bugfixes

    • πŸ›  Fix fatal error on Query::addScriptField() if scripts were already set via setScriptFields() #1086
    • πŸ›  Fix namespace collision of Type in Query\Ids #1104

    βž• Added

    • βž• Added the concept of ResultSet Transformers. The Transformer adds more information to a Result, for example the original object or data that created the Result. #1066
    • Tidied property initialisation in classes where it was duplicated
  • v3.2.0 Changes

    Backward Compatibility Breaks

    • πŸ— Method \Elastica\ResultSet::create and property \Elastica\ResultSet::$class were removed. To change the ResultSet class, implement your own ResultSet Builder. #1065
    • Properties on \Elastica\ResultSet _totalHits, _maxScore, _took and _timedOut that were originally set on object construction are now accessed by the getters on the ResultSet. #1065

    πŸ›  Bugfixes

    • πŸ›  Fix php notice on \Elastica\Index::getAliases() if index has no aliases #1078

    βž• Added

    • ⚑️ Update elasticsearch build dependency to elasticsearch 2.3.2 #1084

    πŸ‘Œ Improvements

    πŸ—„ Deprecated

    • πŸ”§ Configuring the logger in \Elastica\Client $config constructor is deprecated and will be removed. Use the $logger argument instead. #1069
    • πŸ— Extracted creation of ResultSet objects to a new dedicated ResultSet\Builder implementation. #1065
    • πŸ— All properties in the \Elastica\ResultSet class will be moved to private in 4.0. To manipulate the creation of a ResultSet, implement the \Elastica\ResultSet\BuilderInterface and pass your new Builder to the \Elastica\Search instances. #1065
  • v3.1.1 Changes

    βž• Added

    • βž• Add an "AwsAuthV4" transport that automatically signs requests using credentials from the environment or from the client config. This allows using Elastica with Amazon ElasticSearch Service domains that are restricted to IAM roles or policies. #1056
    • ⚑️ Update elasticsearch build dependency to elasticsearch 2.2.1

    πŸ‘Œ Improvements

    • πŸ‘» Elastica\Exception\InvalidException will be thrown if you try using an Elastica\Aggregation\AbstractSimpleAggregation without setting either the field or script param.
    • Elastica\Index->deleteByQuery($query, $options) $query param can be a query array again
    • πŸ‘ Elastica\Query\MoreLikeThis->toArray() now supports providing a non-indexed document as an input to perform the comparison.
    • Elastica\Status will lazy load the _stats at when it is needed. https://github.com/ruflin/Elastica/pull/1058
  • v3.1.0 Changes

    Backward Compatibility Breaks

    • ⚑️ Update Guzzle transport to use Guzzle 6
    • πŸ—„ Elastica\Query\FunctionScore::setFilter - deprecated and will throw DeprecatedException since not supported by Elasticsearch. Use setQuery instead.

    βž• Added

    πŸ‘Œ Improvements

    • βž• Add username and password params to connection

    πŸ—„ Deprecated

  • v3.0.1 Changes

    πŸ‘Œ Improvements