Skip to content

Releases: ruflin/Elastica

Release 6.0.2

29 May 08:33
8a6a3b2
Compare
Choose a tag to compare

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

Release 5.3.2

29 May 11:32
4b6cfe8
Compare
Choose a tag to compare

Bugfixes

Added

  • Added support for multiple bucket sort orders for aggregations.

Release 6.0.1

18 Feb 21:17
0bd1898
Compare
Choose a tag to compare

Bugfixes

Added

  • Added request parameters to Client->deleteDocuments(). #1419
  • Added request parameters to Type->updateDocuments(), Type->addDocuments(), Type->addObjects(), Index->addDocuments(), Index->updateDocuments(). #1427
  • Added avg_bucket() and sum_bucket() in aggregations PR#1443 - (#1279)
  • Added support for terms lookup mechanism on terms query #1452

Release 5.3.1

18 Feb 21:06
22da6b7
Compare
Choose a tag to compare

Bugfixes

  • Removed deprecated min_word_len field in Elastica\Suggest\Term.
    Use min_word_length instead.

Added

  • Added clear() to Scroll for closing search context on ES manually
  • 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

Improvements

  • Clear search context on ES after usage in Scroll

Release 6.0.0

14 Nov 23:54
f891e3d
Compare
Choose a tag to compare

This is the first GA release of the 6.x release cycle. For breaking change make sure to also check the 6.0.0-beta1 release.

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

Elastica 6.0.0-beta1

05 Oct 11:30
Compare
Choose a tag to compare

This is the first pre release of the 6.x release cycle.

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

Elastica 5.3.0

26 Jul 12:22
Compare
Choose a tag to compare

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

  • Added getNumberOfReplicas() for index settings PR#1324
  • Added getNumberOfShards() for index settings PR#1321
  • Added \Elastica\Query\Span* for proximity searches #304

Elastica 5.2.1

07 Jun 13:28
Compare
Choose a tag to compare

Bugfixes

  • Fix elastic 5.3.x deprecation warning related to Content-Type not being set.
  • Fix updating settings of an index. #1296
  • 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

Deprecated

  • Deprecated Tool\CrossIndex use \Elastica\Reindex instead #1311

Elastica 5.2.0

13 Apr 09:03
Compare
Choose a tag to compare

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.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

Elastica 5.1.0

15 Feb 11:26
Compare
Choose a tag to compare

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

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.