diff --git a/CHANGELOG.md b/CHANGELOG.md index cc681cb002..377dc1c850 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file based on the ### Backward Compatibility Breaks * \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) ### Bugfixes * Always set the Guzzle `base_uri` to support connecting to multiple ES hosts. [#1618](https://github.com/ruflin/Elastica/pull/1618) diff --git a/lib/Elastica/Query/QueryString.php b/lib/Elastica/Query/QueryString.php index c6d9a0d488..b3b333135e 100644 --- a/lib/Elastica/Query/QueryString.php +++ b/lib/Elastica/Query/QueryString.php @@ -180,20 +180,6 @@ public function setAnalyzeWildcard(bool $analyze = true): self return $this->setParam('analyze_wildcard', $analyze); } - /** - * Sets the param to automatically generate phrase queries. - * - * If not set, defaults to true. - * - * @param bool $autoGenerate - * - * @return $this - */ - public function setAutoGeneratePhraseQueries(bool $autoGenerate = true): self - { - return $this->setParam('auto_generate_phrase_queries', $autoGenerate); - } - /** * Sets the fields. If no fields are set, _all is chosen. * You cannot set fields and default_field. diff --git a/test/Elastica/Query/QueryStringTest.php b/test/Elastica/Query/QueryStringTest.php index a67e08155c..690ef80d03 100644 --- a/test/Elastica/Query/QueryStringTest.php +++ b/test/Elastica/Query/QueryStringTest.php @@ -216,18 +216,6 @@ public function testSetAnalyzeWildcard() $this->assertEquals($value, $query->toArray()['query_string']['analyze_wildcard']); } - /** - * @group unit - */ - public function testSetAutoGeneratePhraseQueries() - { - $value = true; - $query = new QueryString('test'); - $query->setAutoGeneratePhraseQueries($value); - - $this->assertEquals($value, $query->toArray()['query_string']['auto_generate_phrase_queries']); - } - /** * @group unit */