Skip to content

Commit c283d67

Browse files
richardwei2008medcl
authored andcommitted
chapter16_part2: /130_Partial_Matching/05_Postcodes.asciidoc (#102)
初译
1 parent d867e48 commit c283d67

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

130_Partial_Matching/05_Postcodes.asciidoc

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
1-
=== Postcodes and Structured Data
1+
=== 邮编与结构化数据
22

3-
We will use United Kingdom postcodes (postal codes in the United States) to illustrate how((("partial matching", "postcodes and structured data"))) to use partial matching with
4-
structured data. UK postcodes have a well-defined structure. For instance, the
5-
postcode `W1V 3DG` can((("postcodes (UK), partial matching with"))) be broken down as follows:
3+
我们会使用美国目前使用的邮编形式(United Kingdom postcodes 标准)来说明如何用部分匹配查询结构化数据。((("partial matching", "postcodes and structured data")))这种邮编形式有很好的结构定义。例如,邮编 `W1V 3DG` 可以分解成如下形式:((("postcodes (UK), partial matching with")))
64

7-
* `W1V`: This outer part identifies the postal area and district:
5+
* `W1V` :这是邮编的外部,它定义了邮件的区域和行政区:
86
9-
** `W` indicates the area (one or two letters)
10-
** `1V` indicates the district (one or two numbers, possibly followed by a letter)
7+
** `W` 代表区域( 1 或 2 个字母)
8+
** `1V` 代表行政区( 1 或 2 个数字,可能跟着一个字符)
119

12-
* `3DG`: This inner part identifies a street or building:
10+
* `3DG` :内部定义了街道或建筑:
1311
14-
** `3` indicates the sector (one number)
15-
** `DG` indicates the unit (two letters)
12+
** `3` 代表街区区块( 1 个数字)
13+
** `DG` 代表单元( 2 个字母)
1614

1715

18-
Let's assume that we are indexing postcodes as exact-value `not_analyzed`
19-
fields, so we could create our index as follows:
16+
假设将邮编作为 `not_analyzed` 的精确值字段索引,所以可以为其创建索引,如下:
2017

2118
[source,js]
2219
--------------------------------------------------
@@ -36,7 +33,7 @@ PUT /my_index
3633
--------------------------------------------------
3734
// SENSE: 130_Partial_Matching/10_Prefix_query.json
3835

39-
And index some ((("indexing", "postcodes")))postcodes:
36+
然后索引一些邮编:((("indexing", "postcodes")))
4037

4138
[source,js]
4239
--------------------------------------------------
@@ -57,4 +54,4 @@ PUT /my_index/address/5
5754
--------------------------------------------------
5855
// SENSE: 130_Partial_Matching/10_Prefix_query.json
5956

60-
Now our data is ready to be queried.
57+
现在这些数据已可查询。

0 commit comments

Comments
 (0)