Skip to content

Releases: elastic/elasticsearch-php

Release 6.5.1

19 Jul 14:12
Compare
Choose a tag to compare
  • Fix #846 choosing GET and POST in endpoints based on body [acbc76d0]
  • Fix #843 adding wait_for_active_shards and pipeline in UpdateByQuery [acbc76d0]
  • Fixed missing ScriptsPainlessExecute endpoint, since ES 6.3 [acbc76d0]
  • Fixed missing RankEval endpoint, since ES 6.2 [acbc76d0]
  • Added User-Agent header equal to elasticsearch-php/6.5.1 (metadata-values) [acbc76d0]

NOTE: this release can be used with Elasticsearch from 6.0 to 6.5 included.

Release 5.5.0

18 Jul 15:14
Compare
Choose a tag to compare
  • Added User-Agent header equal to elasticsearch-php/5.5.0 (metadata-values) [26da9a33]
  • Fix #846 choosing GET and POST in endpoints based on body [cdbeab38]
  • Fix #843 adding wait_for_active_shards and pipeline in UpdateByQuery [8b36458]

Release 7.1.1

12 Jul 14:31
Compare
Choose a tag to compare
  • Fixed ClientBuilder::setSSLVerification() to accept string or boolean #917
  • Fix type hinting for setBody in Elasticsearch\Endpoints\Ingest\Pipeline\Put #913

NOTE: this release can be used with Elasticsearch 7.0 and 7.1.

Release 7.1.0

09 Jul 12:13
Compare
Choose a tag to compare
  • Added warning log for Elasticsearch response containing the Warning header #911
  • Fixed #838 hosting company is blocking ports because of YamlRunnerTest.php #844
  • Specialized inheritance of NoNodesAvailableException to extend ServerErrorResponseException instead of the generic \Exception #607
  • Fixed scroll TTL is extracted but not set as a body param #907

Testing

  • Improved the speed of integration tests removing snapshots delete from YamlRunnerTest::clean #911
  • Reduced the number of skipping YAML integration tests from 20 to 6 #911

Docs

  • Documentation updated for Elasticsearch 7 #904

NOTE: this release can be used with Elasticsearch 7.0 and 7.1.

Release 7.0.2

01 Jul 10:55
Compare
Choose a tag to compare
  • Fixed incorrect return type hint when using async requests/futures
    #905

Release 7.0.1

17 Jun 14:45
Compare
Choose a tag to compare
  • Fixed SniffingConnectionPool removing the return type of Connection::sniff() #899

Release 7.0.0

13 Jun 15:39
Compare
Choose a tag to compare
  • Requirement of PHP 7.1 instead of 7.0 that is not supported since 1st Jan 2019 #897
  • Code refactoring using type hints and return type declarations where possible #897
  • Update vendor libraries (PHPUnit 7.5, Symfony YAML 4.3, etc) #897
  • Updated all the API endpoints using the latest 7.0.0 specs of Elasticsearch #897
  • Added the User-Agent in each HTTP request #898
  • Simplified the logging methods logRequestFail($request, $response, $exception)
    and logRequestSuccess($request, $response) in Elasticsearch\Connections\Connection
    #876
  • Fix json_encode for unicode(emoji) characters 856
  • Fix HTTP port specification using CURLOPT_PORT, not anymore in the host 782

Breaking changes

  • Requirement of PHP 7.1 instead of 7.0 that is not supported since 1 Jan 2019.
    See PHP supported version for more information.

  • Elasticsearch 7.0 deprecated APIs that accept types, introduced new typeless
    APIs, and removed support for the default mapping. Read this blog post for more information.

  • Added type hints and return type declarations where possible #897

Release 6.7.1

20 May 14:19
Compare
Choose a tag to compare
  • Added track_total_hits in search endpoint 0c9ff47

Release 6.7.0

29 Apr 15:20
Compare
Choose a tag to compare

Fixes

  • Removed requirement of {type} part in indices.put_mapping, see new API specification here
  • Added seq_no_primary_term parameter in bulk endpoint #884
  • Added include_type_name, if_primary_term, if_seq_no in delete endpoint #884
  • Added include_type_name in get, index, indices.create, indices.field.get, indices.get, indices.mapping.get, indices.mapping.getfield, indices.mapping.put, indices.rollover, indices.template.get, indices.template.put endpoints #884
  • Added seq_no_primary_term in search endpoint #884
  • Added if_primary_term', 'if_seq_noin update endpoint #884

Testing

  • Fix tests for PHP 7 with ES 6.7 [5401479

Docs

Release 6.5.0

24 Apr 09:05
Compare
Choose a tag to compare

Fixes

  • Remove _suggest endpoint, which has disappeared from ES6 #763
  • Fix SearchHitIterator key duplicates #872
  • Fixing script get and delete by removing lang from endpoint url #814
  • Fix SearchResponseIterator is scrolling the first page twice #871, issue #595

Docs

  • [DOCS] Add reference to parse_url() for Extended Host Configuration #778
  • [DOCS] Update php version requirement #757
  • [DOCS] Update community.asciidoc, added ElasticSearchQueryDSL project #749
  • [DOCS] Proper return type array for get method for IndicesNamespace #651
  • [DOCS] Fix full docs link #862

Testing

  • Fix integration tests using docker #867