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

Changelog History
Page 3

  • v5.3.4 Changes

    January 16, 2019

    πŸ‘Œ Improvements

    • πŸ–¨ [Backported] Reduced memory footprint of response by not keeping the raw JSON data after JSON has been parsed. #1588
    • πŸ›  Fix PHPDoc block for ResultSet::current() #1591
    • πŸ›  Fix PHPDoc block for Index:analyze #1586
  • v5.3.0 Changes

    Backward Compatibility Breaks

    • βœ‚ Removed Query\NumericRange, use Query\Range instead #1334

    πŸ›  Bugfixes

    • Send the scroll_id inside a json body instead of plain text #1325

    βž• Added

  • v5.2.1 Changes

    πŸ›  Bugfixes

    • πŸ›  Fix elastic 5.3.x deprecation warning related to Content-Type not being set.
    • πŸ›  Fix updating settings of an index. #1296
    • Remove Elastica\Search::OPTION_SEARCH_TYPE_DFS_QUERY_AND_FETCH and Elastica\Search::OPTION_SEARCH_TYPE_QUERY_AND_FETCH as no longer supported as of 5.3.0
    • πŸ›  Fix bad parameter value to refresh document #1318

    βž• Added

    • Parameter filter_path for response filtering (e.g. $index->search($query, ['filter_path' => 'hits.hits._source']))
    • Add support for Health parameters for Cluster\Health endpoint (new prop : delayed_unassigned_shards, number_of_pending_tasks, number_of_in_flight_fetch, task_max_waiting_in_queue_millis, active_shards_percent_as_number)
    • Add support for querystring in Type. this allow to use update_all_types in type mapping in order to resolve conflicts between fields in different types. Conflicts between fields in different types
    • Added \Elastica\Query\ParentId to avoid join with parent documents #1287
    • Added \Elastica\Reindex for reindexing between indices #1311

    πŸ‘Œ Improvements

    • Added support for other_bucket and other_bucket_key paramters on Elastica\Aggregation\Filters
    • Update elasticsearch testing dependency to 5.4.1

    πŸ—„ Deprecated

    • Deprecated Tool\CrossIndex use \Elastica\Reindex instead #1311
  • v5.2.0 Changes

    πŸ›  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.php added 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::requestEndpoint that allow make requests with official client Endpoint usage. #1275
    • βž• Added \Elastica\Aggregation\GeoBounds that computes the bounding box containing all geo_point values for a field. #1271
    • βž• Added \Elastica\Query\MatchNone the 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\Scroll to 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\ElasticsearchException which is irrelevant since Elasticsearch now exposes the errors as a structured array instead of a single string. Use \Elastica\Exception\ResponseException::getResponse::getFullError instead.
    • Deprecated both prefix_len & min_word_len fields in Elastica\Suggest\CandidateGenerator\DirectGenerator as these now return errors when using the phrase suggester to querying terms. Use prefix_length & min_word_length instead #1282 Use \Elastica\Exception\ResponseException::getResponse::getFullError instead. #1251
  • v5.1.0 Changes

    Backward Compatibility Breaks

    • \Elastica\Script\AbstractScript added the script language as constructor argument and sub-classes must implement getScriptTypeArray

    πŸ›  Bugfixes

    • βœ‚ Removed features that do not exist in Elasticsearch 5.0 anymore:
      • ttl and timestamp logic: setters and getters in documents and mapping
      • \Elastica\Query\Missing: negate \Elastica\Query\Exists instead
      • \Elastica\Query\TopChildren
    • \Elastica\Query\MatchPhrase and \Elastica\Query\MatchPhrasePrefix do not extend \Elastica\Query\Match anymore because they do not share exactly the same options
    • βœ‚ Removed the routing option in \Elastica\Index::create because there is no routing param when creating an index. So that option was doing nothing so far but fails in Elasticearch 5.0 because the non-existing query param is validated.
    • πŸ›  Fix relation property of \Elastica\Query\GeoShapeProvided
    • πŸ—„ repoint \Elastica\Type::exists from the deprecated /{index}/{type} endpoint to /{index}/_mapping/{type}

    βž• Added

    • βž• added \Elastica\Script\ScriptId to reference stored scripts by ID
    • βž• added \Elastica\Query\AbstractGeoShape::RELATION_WITHIN
    • Date math in index names is now escaped in URI
    • βž• Added a check for paths that already have date math escaped

    πŸ‘Œ Improvements

    • πŸ—„ \Elastica\Query\HasParent to use parent_type instead of type. Fixes warning due to field being deprecated.

    πŸ—„ Deprecated

    • πŸ—„ Deprecated functionality that is also deprecated in Elasticsearch 5.0:
      • \Elastica\Client::optimizeAll in favor of \Elastica\Client::forcemergeAll
      • \Elastica\Query\BoolQuery::setMinimumNumberShouldMatch in favor of \Elastica\Query\BoolQuery::setMinimumShouldMatch
      • \Elastica\Query\GeoDistanceRange: use distance aggregations or sorting instead
      • \Elastica\Query\GeohashCell
      • \Elastica\Query\Indices: search on the _index field instead
      • \Elastica\Query\Match::setFieldType: use \Elastica\Query\MatchPhrase and \Elastica\Query\MatchPhrasePrefix instead
    • πŸ—„ \Elastica\Transport\Null is deprecated because null is a reserved class name in PHP 7. Use \Elastica\Transport\NullTransport instead.
  • 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