diff --git a/.travis.yml b/.travis.yml index 624f94cbb36a4c2908e966a86174e8b276399da7..9a0196d1164e26a24793237db1bee21b084cc1e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ before_script: - composer install --no-interaction --prefer-dist script: - vendor/bin/phpunit --coverage-clover=coverage.clover - - vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor/,src/Filter/ ./ + - vendor/bin/phpcs -p --standard=PSR2 --ignore=vendor/ ./ after_script: - vendor/bin/coveralls notifications: diff --git a/docs/Query/FuzzyLikeThisField.md b/docs/Query/FuzzyLikeThisField.md deleted file mode 100644 index d2a7d3c88ac163f4cbe40e607c1fcab0faf451ad..0000000000000000000000000000000000000000 --- a/docs/Query/FuzzyLikeThisField.md +++ /dev/null @@ -1,40 +0,0 @@ -# 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] - -The fuzzy like this field query is the same as the [fuzzy like this query][2], except that it runs against a single -field. It provides nicer query DSL over the generic fuzzy like this query, and support typed fields query -(automatically wraps typed fields with type filter to match only on the specific type). - -## Simple example - -```JSON -{ - "fuzzy_like_this_field" : { - "name.first" : { - "like_text" : "text like this one", - "max_query_terms" : 12 - } - } -} -``` - -In DSL: - -```php -$fuzzyLikeThisFieldQuery = new FuzzyLikeThisFieldQuery( - 'name.first', - 'text like this one', - [ 'max_query_terms' => 12 ] -); - -$search = new Search(); -$search->addQuery($fuzzyLikeThisFieldQuery); - -$queryArray = $search->toArray(); -``` - -[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-flt-field-query.html -[2]: FuzzyLikeThisQuery.md diff --git a/docs/Query/FuzzyLikeThisQuery.md b/docs/Query/FuzzyLikeThisQuery.md deleted file mode 100644 index 58eca8ed4991ddf6339ccd24a61f6b56dea1577a..0000000000000000000000000000000000000000 --- a/docs/Query/FuzzyLikeThisQuery.md +++ /dev/null @@ -1,36 +0,0 @@ -# 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] - -Fuzzy like this query find documents that are "like" provided text by running it against one or more fields. - -## Simple example - -```JSON -{ - "fuzzy_like_this" : { - "fields" : ["name.first", "name.last"], - "like_text" : "text like this one", - "max_query_terms" : 12 - } -} -``` - -In DSL: - -```php -$fuzzyLikeThisQuery = new FuzzyLikeThisQuery( - ['name.first', 'name.last'], - 'text like this one', - [ 'max_query_terms' => 12 ] -); - -$search = new Search(); -$search->addQuery($fuzzyLikeThisQuery); - -$queryArray = $search->toArray(); -``` - -[1]: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-flt-query.html diff --git a/docs/Query/index.md b/docs/Query/index.md index 1540fa038d9536e718e75ad1ca62f602e5abe072..29cc1212694597163a2b5e755eb691f433b36fff 100644 --- a/docs/Query/index.md +++ b/docs/Query/index.md @@ -34,8 +34,6 @@ For more information how to combine search queries take a look at [How to search - [DisMax](DisMax.md) - [Function score](FunctionScore.md) - [Fuzzy](Fuzzy.md) - - [Fuzzy like this field](FuzzyLikeThisField.md) - - [Fuzzy like this query](FuzzyLikeThisQuery.md) - [Has child](HasChild.md) - [Has parent](HasParent.md) - [Ids](Ids.md)