Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Elasticsearch DSL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
Elasticsearch DSL
Commits
6630767c
Commit
6630767c
authored
9 years ago
by
Mantas Varatiejus
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated stuff
parent
f93b3c25
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+1
-1
1 addition, 1 deletion
.travis.yml
docs/Query/FuzzyLikeThisField.md
+0
-40
0 additions, 40 deletions
docs/Query/FuzzyLikeThisField.md
docs/Query/FuzzyLikeThisQuery.md
+0
-36
0 additions, 36 deletions
docs/Query/FuzzyLikeThisQuery.md
docs/Query/index.md
+0
-2
0 additions, 2 deletions
docs/Query/index.md
with
1 addition
and
79 deletions
.travis.yml
+
1
−
1
View file @
6630767c
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
docs/Query/FuzzyLikeThisField.md
deleted
100644 → 0
+
0
−
40
View file @
f93b3c25
# 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
This diff is collapsed.
Click to expand it.
docs/Query/FuzzyLikeThisQuery.md
deleted
100644 → 0
+
0
−
36
View file @
f93b3c25
# 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
This diff is collapsed.
Click to expand it.
docs/Query/index.md
+
0
−
2
View file @
6630767c
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment