Skip to content

Commit b390183

Browse files
luotitanmedcl
authored andcommitted
chapter24_part4: /270_Fuzzy_matching/40_Fuzzy_match_query.asciidoc (#134)
* 第一次提交 * 第二次修改提交
1 parent a1fbbfd commit b390183

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

270_Fuzzy_matching/40_Fuzzy_match_query.asciidoc

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[fuzzy-match-query]]
2-
=== Fuzzy match Query
2+
=== 模糊匹配查询
33

4-
The `match` query supports ((("typoes and misspellings", "fuzzy match query")))((("match query", "fuzzy matching")))((("fuzzy matching", "match query")))fuzzy matching out of the box:
4+
`match` 查询支持((("typoes and misspellings", "fuzzy match query")))((("match query", "fuzzy matching")))((("fuzzy matching", "match query")))开箱即用的模糊匹配:
55

66
[source,json]
77
-----------------------------------
@@ -19,11 +19,9 @@ GET /my_index/my_type/_search
1919
}
2020
-----------------------------------
2121

22-
The query string is first analyzed, to produce the terms `[surprize, me]`, and
23-
then each term is fuzzified using the specified `fuzziness`.
22+
查询字符串首先进行分析,会产生词项 `[surprize, me]` ,并且每个词项根据指定的 `fuzziness` 进行模糊化。
2423

25-
Similarly, the `multi_match` query also ((("multi_match queries", "fuzziness support")))supports `fuzziness`, but only when
26-
executing with type `best_fields` or `most_fields`:
24+
同样, `multi_match` 查询也((("multi_match queries", "fuzziness support")))支持 `fuzziness` ,但只有当执行查询时类型是 `best_fields` 或者 `most_fields` :
2725

2826
[source,json]
2927
-----------------------------------
@@ -39,9 +37,6 @@ GET /my_index/my_type/_search
3937
}
4038
-----------------------------------
4139

42-
Both the `match` and `multi_match` queries also support the `prefix_length`
43-
and `max_expansions` parameters.
44-
45-
TIP: Fuzziness works only with the basic `match` and `multi_match` queries. It
46-
doesn't work with phrase matching, common terms, or `cross_fields` matches.
40+
`match` 和 `multi_match` 查询都支持 `prefix_length` 和 `max_expansions` 参数。
4741

42+
TIP: 模糊性(Fuzziness)只能在 `match` and `multi_match` 查询中使用。不能使用在短语匹配、常用词项或 `cross_fields` 匹配。

0 commit comments

Comments
 (0)