Skip to content

Commit

Permalink
Prepare 6.0.0 release (#1408)
Browse files Browse the repository at this point in the history
* Run linting
* Update Docker image to Elasticsearch 6.0.0
* Update elasticsearch-php lib dependency to 6.0.0
  • Loading branch information
ruflin committed Nov 14, 2017
1 parent fc87fb4 commit f891e3d
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 14 deletions.
19 changes: 14 additions & 5 deletions CHANGELOG.md
Expand Up @@ -2,25 +2,34 @@
All notable changes to this project will be documented in this file based on the [Keep a Changelog](http://keepachangelog.com/) Standard. This project adheres to [Semantic Versioning](http://semver.org/).


## [Unreleased](https://github.com/ruflin/Elastica/compare/6.0.0-beta1...master)
## [Unreleased](https://github.com/ruflin/Elastica/compare/6.0.0...master)

### Backward Compatibility Breaks
- Return the [_source of inner hit nested](https://github.com/elastic/elasticsearch/pull/26982) as is without wrapping it into its full path context [#1398](https://github.com/ruflin/Elastica/pull/1398)
- Removed CrossIndex Class as from now use Reindex. [#1411](https://github.com/ruflin/Elastica/pull/1411)

### Bugfixes

### Added

### Improvements

### Deprecated


## [6.0.0](https://github.com/ruflin/Elastica/compare/6.0.0-beta1...6.0.0)

### Backward Compatibility Breaks
- Return the [_source of inner hit nested](https://github.com/elastic/elasticsearch/pull/26982) as is without wrapping it into its full path context [#1398](https://github.com/ruflin/Elastica/pull/1398)
- Removed CrossIndex Class as from now use Reindex. [#1411](https://github.com/ruflin/Elastica/pull/1411)

### 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`

### Deprecated


## [6.0.0-beta1](https://github.com/ruflin/Elastica/compare/5.3.0...6.0.0-beta1)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -17,7 +17,7 @@ All library issues should go to the [issue tracker from github](https://github.c

Compatibility
-------------
This release is compatible with all Elasticsearch 6.x releases. It was tested with version 6.0.0-rc1.
This release is compatible with all Elasticsearch 6.x releases. It was tested with version 6.0.0.


Contributing
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -14,7 +14,7 @@
"require": {
"php": "^7.0",
"psr/log": "~1.0",
"elasticsearch/elasticsearch": "6.0.0-beta1"
"elasticsearch/elasticsearch": "6.0.0"
},
"require-dev": {
"aws/aws-sdk-php": "~3.0",
Expand Down
2 changes: 1 addition & 1 deletion env/elasticsearch/Dockerfile
@@ -1,4 +1,4 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:6.0.0-rc2
FROM docker.elastic.co/elasticsearch/elasticsearch:6.0.0
MAINTAINER Nicolas Ruflin <spam@ruflin.com>

RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
Expand Down
3 changes: 1 addition & 2 deletions lib/Elastica/Aggregation/StatsBucket.php
@@ -1,5 +1,4 @@
<?php

namespace Elastica\Aggregation;

use Elastica\Exception\InvalidException;
Expand All @@ -12,7 +11,7 @@
class StatsBucket extends AbstractAggregation
{
/**
* @param string $name
* @param string $name
* @param string|null $bucketsPath
*/
public function __construct($name, $bucketsPath = null)
Expand Down
2 changes: 1 addition & 1 deletion lib/Elastica/Param.php
Expand Up @@ -182,7 +182,7 @@ public function getParams()
}

/**
* @inheritdoc
* {@inheritdoc}
*
* @return int
*/
Expand Down
3 changes: 1 addition & 2 deletions lib/Elastica/Query/GeoPolygon.php
Expand Up @@ -55,13 +55,12 @@ public function toArray()
}

/**
* @inheritdoc
* {@inheritdoc}
*
* @return int
*/
public function count()
{
return count($this->_key);
}

}
1 change: 0 additions & 1 deletion test/Elastica/IndexTest.php
Expand Up @@ -249,7 +249,6 @@ public function testDeleteByQueryWithQueryAndOptions()
$doc->setRouting($routing1);
$type->addDocument($doc);


$doc = new Document(2, ['name' => 'ruflin']);
$doc->setRouting($routing1);
$type->addDocument($doc);
Expand Down

0 comments on commit f891e3d

Please sign in to comment.