diff --git a/CHANGELOG.md b/CHANGELOG.md index dd53d753fb06d3cc983fa0976e4b65fef4a4a2da..e379104153aecc2b3e4c4b1ad959490075b90167 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +v1.x (2016-x) +--- + +- Deprecated `FuzzyLikeThisQuery` and `FuzzyLikeThisFieldQuery` queries + v1.1.1 (2016-01-26) --- diff --git a/docs/Query/FuzzyLikeThisField.md b/docs/Query/FuzzyLikeThisField.md index eecb6a47356454490ac090a26c3e0af8a213d803..d2a7d3c88ac163f4cbe40e607c1fcab0faf451ad 100644 --- a/docs/Query/FuzzyLikeThisField.md +++ b/docs/Query/FuzzyLikeThisField.md @@ -1,4 +1,6 @@ # Fuzzy Like This Field Query + +__DEPRECATED__: this query is deprecated and will be removed in ElasticsearchDSL 2.0 > More info about fuzzy like this field query is in the [official elasticsearch docs][1] diff --git a/docs/Query/FuzzyLikeThisQuery.md b/docs/Query/FuzzyLikeThisQuery.md index de05d402fc240fac5bca315f9d92008d231b2e94..58eca8ed4991ddf6339ccd24a61f6b56dea1577a 100644 --- a/docs/Query/FuzzyLikeThisQuery.md +++ b/docs/Query/FuzzyLikeThisQuery.md @@ -1,4 +1,6 @@ # Fuzzy Like This Query + +__DEPRECATED__: this query is deprecated and will be removed in ElasticsearchDSL 2.0 > More info about fuzzy like this field query is in the [official elasticsearch docs][1] diff --git a/src/Query/FuzzyLikeThisFieldQuery.php b/src/Query/FuzzyLikeThisFieldQuery.php index a4dbbcfa6e03b16ea7541eabc975a0e59f39b694..0424dd3591a84516041e5c22c650a186bd96a8b6 100644 --- a/src/Query/FuzzyLikeThisFieldQuery.php +++ b/src/Query/FuzzyLikeThisFieldQuery.php @@ -16,6 +16,8 @@ use ONGR\ElasticsearchDSL\ParametersTrait; /** * Elasticsearch fuzzy_like_this_field query class. + * + * @deprecated Will be removed in 2.0. */ class FuzzyLikeThisFieldQuery implements BuilderInterface { @@ -38,6 +40,11 @@ class FuzzyLikeThisFieldQuery implements BuilderInterface */ public function __construct($field, $likeText, array $parameters = []) { + @trigger_error( + 'The FuzzyLikeThisFieldQuery class is deprecated and will be removed in 2.0.', + E_USER_DEPRECATED + ); + $this->field = $field; $this->likeText = $likeText; $this->setParameters($parameters); diff --git a/src/Query/FuzzyLikeThisQuery.php b/src/Query/FuzzyLikeThisQuery.php index 4b402cf027c5fca171ca77ec71608c832767d189..56fca44f77a95df65b430a520448d6ab129a3209 100644 --- a/src/Query/FuzzyLikeThisQuery.php +++ b/src/Query/FuzzyLikeThisQuery.php @@ -16,6 +16,8 @@ use ONGR\ElasticsearchDSL\ParametersTrait; /** * Elasticsearch fuzzy_like_this query class. + * + * @deprecated Will be removed in 2.0. */ class FuzzyLikeThisQuery implements BuilderInterface { @@ -38,6 +40,11 @@ class FuzzyLikeThisQuery implements BuilderInterface */ public function __construct($fields, $likeText, array $parameters = []) { + @trigger_error( + 'The FuzzyLikeThisQuery class is deprecated and will be removed in 2.0.', + E_USER_DEPRECATED + ); + if (!is_array($fields)) { $fields = explode(',', $fields); }