forked from elastic/elasticsearch-definitive-guide
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chapter24_part4: /270_Fuzzy_matching/40_Fuzzy_match_query.asciidoc #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[[fuzzy-match-query]] | ||
=== Fuzzy match Query | ||
=== 模糊匹配查询 | ||
|
||
The `match` query supports ((("typoes and misspellings", "fuzzy match query")))((("match query", "fuzzy matching")))((("fuzzy matching", "match query")))fuzzy matching out of the box: | ||
`match` 查询支持模糊匹配的开箱即用: | ||
|
||
[source,json] | ||
----------------------------------- | ||
|
@@ -19,11 +19,9 @@ GET /my_index/my_type/_search | |
} | ||
----------------------------------- | ||
|
||
The query string is first analyzed, to produce the terms `[surprize, me]`, and | ||
then each term is fuzzified using the specified `fuzziness`. | ||
查询字符串首先进行分析,会产生词项 `[surprize, me]` ,并且每个词项根据指定的 `fuzziness` 进行模糊化。 | ||
|
||
Similarly, the `multi_match` query also ((("multi_match queries", "fuzziness support")))supports `fuzziness`, but only when | ||
executing with type `best_fields` or `most_fields`: | ||
同样, `multi_match` 查询也((("multi_match queries", "fuzziness support")))支持 `fuzziness` ,但只有当执行查询时类型是 `best_fields` 或者 `most_fields` : | ||
|
||
[source,json] | ||
----------------------------------- | ||
|
@@ -39,9 +37,6 @@ GET /my_index/my_type/_search | |
} | ||
----------------------------------- | ||
|
||
Both the `match` and `multi_match` queries also support the `prefix_length` | ||
and `max_expansions` parameters. | ||
|
||
TIP: Fuzziness works only with the basic `match` and `multi_match` queries. It | ||
doesn't work with phrase matching, common terms, or `cross_fields` matches. | ||
`match` 和 `multi_match` 查询都支持 `prefix_length` 和 `max_expansions` 参数。 | ||
|
||
TIP: 模糊性只能在 `match` and `multi_match` 查询中使用。不能使用在短语匹配,常用词项,或 `cross_fields` 匹配。 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1.注释一下,『模糊性』=》『模糊性(Fuzziness)』前后呼应。 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
((("typoes and misspellings", "fuzzy match query")))((("match query", "fuzzy matching")))((("fuzzy matching", "match query")))
别去掉了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是不是换成 『开箱即用的模糊匹配』好点?