From 2eecbffaad2ee9ca8f2e101b780daadc581c39d5 Mon Sep 17 00:00:00 2001 From: thePanz Date: Fri, 11 Oct 2019 09:04:54 +0200 Subject: [PATCH] ES-7: Remove deleted GeoHashCell query --- CHANGELOG.md | 1 + lib/Elastica/Query/GeohashCell.php | 50 ------------------------------ 2 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 lib/Elastica/Query/GeohashCell.php diff --git a/CHANGELOG.md b/CHANGELOG.md index b3e7a69d8f..2f6d68d8dc 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file based on the ## [Unreleased](https://github.com/ruflin/Elastica/compare/6.1.1...master) ### Backward Compatibility Breaks +* Removed `\Elastica\Query\GeohashCell` query, use `\Elastica\Query\GeoBoundingBox` instead [#1672](https://github.com/ruflin/Elastica/pull/1672). * Dropped support for PHP 7.0 * \Elastica\AbstractUpdateAction::getOptions( $fields ) no longer supports the $underscore parameter, option names must match what elasticsearch expects. * Removed no longer supported \Elastica\Query\QueryString::setAutoGeneratePhraseQueries( $bool ) [#1622](https://github.com/ruflin/Elastica/pull/1622) diff --git a/lib/Elastica/Query/GeohashCell.php b/lib/Elastica/Query/GeohashCell.php deleted file mode 100644 index ca81739286..0000000000 --- a/lib/Elastica/Query/GeohashCell.php +++ /dev/null @@ -1,50 +0,0 @@ - 40.3, 'lon' => 45.2] - * @param string|int $precision Integer length of geohash prefix or distance (3, or "50m") - * @param bool $neighbors if true, queries cells next to the given cell - */ - public function __construct(string $key, $location, $precision = -1, bool $neighbors = false) - { - parent::__construct($key, $location); - $this->setPrecision($precision); - $this->setNeighbors($neighbors); - } - - /** - * Set the precision for this query. - * - * @param string|int $precision Integer length of geohash prefix or distance (3, or "50m") - * - * @return $this - */ - public function setPrecision($precision): self - { - return $this->setParam('precision', $precision); - } - - /** - * Set the neighbours option for this query. - * - * @param bool $neighbours if true, queries cells next to the given cell - * - * @return $this - */ - public function setNeighbors(bool $neighbours): self - { - return $this->setParam('neighbors', $neighbours); - } -}