Skip to content
Snippets Groups Projects
Commit 6630767c authored by Mantas Varatiejus's avatar Mantas Varatiejus
Browse files

Remove deprecated stuff

parent f93b3c25
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ before_script: ...@@ -13,7 +13,7 @@ before_script:
- composer install --no-interaction --prefer-dist - composer install --no-interaction --prefer-dist
script: script:
- vendor/bin/phpunit --coverage-clover=coverage.clover - 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: after_script:
- vendor/bin/coveralls - vendor/bin/coveralls
notifications: notifications:
......
# 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
# 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
...@@ -34,8 +34,6 @@ For more information how to combine search queries take a look at [How to search ...@@ -34,8 +34,6 @@ For more information how to combine search queries take a look at [How to search
- [DisMax](DisMax.md) - [DisMax](DisMax.md)
- [Function score](FunctionScore.md) - [Function score](FunctionScore.md)
- [Fuzzy](Fuzzy.md) - [Fuzzy](Fuzzy.md)
- [Fuzzy like this field](FuzzyLikeThisField.md)
- [Fuzzy like this query](FuzzyLikeThisQuery.md)
- [Has child](HasChild.md) - [Has child](HasChild.md)
- [Has parent](HasParent.md) - [Has parent](HasParent.md)
- [Ids](Ids.md) - [Ids](Ids.md)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment