Skip to content

Commit

Permalink
Merge pull request #1041 from ruflin/release-3.1.0
Browse files Browse the repository at this point in the history
Prepare CHANGELOG and composer.json for 3.1.0 release
  • Loading branch information
ruflin committed Jan 30, 2016
2 parents a8b0b6b + df53666 commit 2c881b1
Show file tree
Hide file tree
Showing 75 changed files with 119 additions and 130 deletions.
17 changes: 14 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,25 @@
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/3.0.1...HEAD)
## [Unreleased](https://github.com/ruflin/Elastica/compare/3.1.0...HEAD)

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

### Bugfixes

### Added

### Improvements

### Deprecated


## [3.1.0](https://github.com/ruflin/Elastica/compare/3.0.1...3.1.0)

### 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
- `Elastica\Result->getDocument` and `Elastica\ResultSet->getDocuments` for return `\Elastica\Document`. https://github.com/ruflin/Elastica/issues/960

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "3.0.x-dev"
"dev-master": "3.1.x-dev"
}
}
}
1 change: 1 addition & 0 deletions lib/Elastica/AbstractScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace Elastica;

use Elastica\Script\AbstractScript as BaseAbstractScript;

/**
* Kept for BC reasons.
*
Expand Down
2 changes: 1 addition & 1 deletion lib/Elastica/Aggregation/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class Filter extends AbstractAggregation
{
/**
* @param string $name
* @param string $name
* @param AbstractQuery $filter
*/
public function __construct($name, $filter = null)
Expand Down
2 changes: 1 addition & 1 deletion lib/Elastica/Aggregation/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Filters extends AbstractAggregation
* If a name is given, it will be added as a key, otherwise considered as an anonymous filter
*
* @param AbstractQuery $filter
* @param string $name
* @param string $name
*
* @return $this
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Elastica/Bulk/Action/AbstractDocument.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace Elastica\Bulk\Action;

use Elastica\Script\AbstractScript;
use Elastica\AbstractUpdateAction;
use Elastica\Bulk\Action;
use Elastica\Document;
use Elastica\Script\AbstractScript;

abstract class AbstractDocument extends Action
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Elastica/Bulk/Action/UpdateDocument.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Elastica\Bulk\Action;

use Elastica\Script\AbstractScript;
use Elastica\Document;
use Elastica\Script\AbstractScript;

class UpdateDocument extends IndexDocument
{
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-filters.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
abstract class AbstractFilter extends Param
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/AbstractGeoDistance.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
abstract class AbstractGeoDistance extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/AbstractGeoShape.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author Bennie Krijger <benniekrijger@gmail.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
abstract class AbstractGeoShape extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/BoolAnd.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Lee Parker, Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-and-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class BoolAnd extends AbstractMulti
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/BoolFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class BoolFilter extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/BoolNot.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Lee Parker, Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-not-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class BoolNot extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/BoolOr.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-or-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class BoolOr extends AbstractMulti
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Exists.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Oleg Cherniy <oleg.cherniy@gmail.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-exists-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Exists extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/GeoBoundingBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author Fabian Vogler <fabian@equivalence.ch>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-bounding-box-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class GeoBoundingBox extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/GeoDistance.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class GeoDistance extends AbstractGeoDistance
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/GeoDistanceRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author munkie
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-range-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class GeoDistanceRange extends AbstractGeoDistance
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/GeoPolygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Michael Maclean <mgdm@php.net>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-polygon-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class GeoPolygon extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/GeoShapePreIndexed.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author Bennie Krijger <benniekrijger@gmail.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class GeoShapePreIndexed extends AbstractGeoShape
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/GeoShapeProvided.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author BennieKrijger <benniekrijger@gmail.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class GeoShapeProvided extends AbstractGeoShape
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/GeohashCell.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Class GeohashCell.
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geohash-cell-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class GeohashCell extends AbstractGeoDistance
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/HasChild.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Fabian Vogler <fabian@equivalence.ch>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-child-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class HasChild extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/HasParent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Returns child documents having parent docs matching the query.
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-parent-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class HasParent extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Ids.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author Lee Parker, Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-ids-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Ids extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Indices.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* Class Indices.
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-indices-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Indices extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Limit.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-limit-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Limit extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/MatchAll.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-all-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class MatchAll extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Missing.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Maciej Wiercinski <maciej@wiercinski.net>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-missing-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Missing extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Nested.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link http://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Nested extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/NumericRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class NumericRange extends Range
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Prefix.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Jasper van Wanrooy <jasper@vanwanrooy.net>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Prefix extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Query extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Range.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Range extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Regexp.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Timothy Lamb <trash80@gmail.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Regexp extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Script.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-script-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Script extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Term.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Term extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Terms.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @author Nicolas Ruflin <spam@ruflin.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Terms extends AbstractFilter
Expand Down
1 change: 0 additions & 1 deletion lib/Elastica/Filter/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @author James Wilson <jwilson556@gmail.com>
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-type-filter.html
*
* @deprecated Filters are deprecated. Use queries in filter context. See https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-filters.html
*/
class Type extends AbstractFilter
Expand Down
1 change: 1 addition & 0 deletions lib/Elastica/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public static function create($query)
trigger_error('Deprecated: Elastica\Query::create() passing filter is deprecated. Create query and use setPostFilter with AbstractQuery instead.', E_USER_DEPRECATED);
$newQuery = new self();
$newQuery->setPostFilter($query);

return $newQuery;
case empty($query):
return new self(new MatchAll());
Expand Down
2 changes: 1 addition & 1 deletion lib/Elastica/Query/Filtered.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Filtered extends AbstractQuery
/**
* Constructs a filtered query.
*
* @param \Elastica\Query\AbstractQuery $query OPTIONAL Query object
* @param \Elastica\Query\AbstractQuery $query OPTIONAL Query object
* @param \Elastica\Query\AbstractQuery $filter OPTIONAL Filter object
*/
public function __construct(AbstractQuery $query = null, $filter = null)
Expand Down
Loading

0 comments on commit 2c881b1

Please sign in to comment.