@@ -5,28 +5,31 @@ msgstr ""
5
5
"Report-Msgid-Bugs-To : \n "
6
6
"POT-Creation-Date : 2014-09-03 15:39-0400\n "
7
7
"PO-Revision-Date : YEAR-MO-DA HO:MI+ZONE\n "
8
- "Last-Translator : FULL NAME <EMAIL@ADDRESS >\n "
8
+ "
Last-Translator :
TJWORKS <[email protected] >\n"
9
9
"
Language-Team :
LANGUAGE <[email protected] >\n "
10
10
"MIME-Version : 1.0\n "
11
11
"Content-Type : text/plain; charset=UTF-8\n "
12
12
"Content-Transfer-Encoding : 8bit\n "
13
13
14
14
#: ../source/tutorial/model-data-for-keyword-search.txt:3
15
15
msgid "Model Data to Support Keyword Search"
16
- msgstr ""
16
+ msgstr "关键词搜索建模 "
17
17
18
18
#: ../source/tutorial/model-data-for-keyword-search.txt:9
19
19
msgid ""
20
20
"Keyword search is *not* the same as text search or full text search, and "
21
21
"does not provide stemming or other text-processing features. See the :ref"
22
22
":`limit-keyword-indexes` section for more information."
23
23
msgstr ""
24
+ "关键词搜索和文本搜索及全文检索不同,它不提供类似于断词或者词干提取等文本处理功能。"
25
+ "更多相关介绍请参见 :ref:`limit-keyword-indexes` 部分。"
24
26
25
27
#: ../source/tutorial/model-data-for-keyword-search.txt:14
26
28
msgid ""
27
29
"In 2.4, MongoDB provides a text search feature. See :doc:`/core/index-text` "
28
30
"for more information."
29
31
msgstr ""
32
+ "从2.4版本开始, MongoDB提供全文检索功能: :doc:`/core/index-text`。"
30
33
31
34
#: ../source/tutorial/model-data-for-keyword-search.txt:17
32
35
msgid ""
@@ -35,6 +38,8 @@ msgid ""
35
38
"to use regular expression pattern matches. However, for many operations on "
36
39
"text, these methods do not satisfy application requirements."
37
40
msgstr ""
41
+ "如果你的应用需要对某个文本字段进行查询,你可以用完全匹配或使用正则表达式 :query:`$regex` 。"
42
+ "但是很多情境下这些手段不能够满足应用的需求。"
38
43
39
44
#: ../source/tutorial/model-data-for-keyword-search.txt:23
40
45
msgid ""
@@ -44,10 +49,13 @@ msgid ""
44
49
":ref:`multi-key index <index-type-multikey>`, this pattern can support "
45
50
"application's keyword search operations."
46
51
msgstr ""
52
+ "下面这个范式介绍了一种在同一个文档内使用数组来保存关键词再对数组建多键索引 "
53
+ "(:ref:`multi-key index <index-type-multikey>`)的方式"
54
+ "来实现关键词搜索。"
47
55
48
56
#: ../source/tutorial/model-data-for-keyword-search.txt:30
49
57
msgid "Pattern"
50
- msgstr ""
58
+ msgstr "范式 "
51
59
52
60
#: ../source/tutorial/model-data-for-keyword-search.txt:32
53
61
msgid ""
@@ -56,46 +64,55 @@ msgid ""
56
64
"array. You can then create a :ref:`multi-key index <index-type-multi-key>` "
57
65
"on the array and create queries that select values from the array."
58
66
msgstr ""
67
+ "为实现关键词搜索,在文档内增加一个数组字段并把每一个关键词加到数组里。"
68
+ "然后你可以对该字段建一个 :ref:`多键索引 <index-type-multi-key>`。"
69
+ "这样你就可以对数组里面的关键词进行查询了。"
59
70
60
71
#: ../source/tutorial/model-data-for-keyword-search.txt:0
61
72
msgid "Example"
62
- msgstr ""
73
+ msgstr "例子 "
63
74
64
75
#: ../source/tutorial/model-data-for-keyword-search.txt:40
65
76
msgid ""
66
77
"Given a collection of library volumes that you want to provide topic-based "
67
78
"search. For each volume, you add the array ``topics``, and you add as many "
68
79
"keywords as needed for a given volume."
69
80
msgstr ""
81
+ "假如你希望对图书馆的藏书实现一个按主题搜索的功能。 对每一本书,你可以加一个数组字段"
82
+ " ``topics`` 并把这本书相关的主题都加到这个数组里。"
70
83
71
84
#: ../source/tutorial/model-data-for-keyword-search.txt:44
72
85
msgid "For the ``Moby-Dick`` volume you might have the following document:"
73
- msgstr ""
86
+ msgstr "对于 ``Moby-Dick`` 这本书你可能会有以下这样的文档: "
74
87
75
88
#: ../source/tutorial/model-data-for-keyword-search.txt:56
76
89
msgid "You then create a multi-key index on the ``topics`` array:"
77
- msgstr ""
90
+ msgstr "然后对 ``topics`` 字段建多键索引: "
78
91
79
92
#: ../source/tutorial/model-data-for-keyword-search.txt:62
80
93
msgid ""
81
94
"The multi-key index creates separate index entries for each keyword in the "
82
95
"``topics`` array. For example the index contains one entry for ``whaling`` "
83
96
"and another for ``allegory``."
84
97
msgstr ""
98
+ "多键索引会对数组里的每一个值建立一个索引项。在这个例子里 ``whaling`` 和 "
99
+ "``allegory`` 个有一个索引项。"
85
100
86
101
#: ../source/tutorial/model-data-for-keyword-search.txt:66
87
102
msgid "You then query based on the keywords. For example:"
88
- msgstr ""
103
+ msgstr "现在你可以按关键词进行搜索,如: "
89
104
90
105
#: ../source/tutorial/model-data-for-keyword-search.txt:72
91
106
msgid ""
92
107
"An array with a large number of elements, such as one with several hundreds "
93
108
"or thousands of keywords will incur greater indexing costs on insertion."
94
109
msgstr ""
110
+ "如果数组较大,达到几百或者几千以上的关键词,那么文档插入操作时的索引维护开支会"
111
+ "大大增加。"
95
112
96
113
#: ../source/tutorial/model-data-for-keyword-search.txt:79
97
114
msgid "Limitations of Keyword Indexes"
98
- msgstr ""
115
+ msgstr "关键词索引的局限性 "
99
116
100
117
#: ../source/tutorial/model-data-for-keyword-search.txt:81
101
118
msgid ""
@@ -104,24 +121,28 @@ msgid ""
104
121
"are not sufficient or comparable to full-text products in the following "
105
122
"respects:"
106
123
msgstr ""
124
+ "MongoDB 的这种关键词搜索方案和专门的全文搜索工具软件相比有以下的局限性:"
107
125
108
126
#: ../source/tutorial/model-data-for-keyword-search.txt:86
109
127
msgid ""
110
128
"*Stemming*. Keyword queries in MongoDB can not parse keywords for root or "
111
129
"related words."
112
130
msgstr ""
131
+ "*词干提取*。 MongoDB的关键词查询无法对相近词进行归并处理。"
113
132
114
133
#: ../source/tutorial/model-data-for-keyword-search.txt:89
115
134
msgid ""
116
135
"*Synonyms*. Keyword-based search features must provide support for synonym "
117
136
"or related queries in the application layer."
118
137
msgstr ""
138
+ "*同义词*。 对同义词的处理目前必须在应用程序端完成。MongoDB无法支持这一点。"
119
139
120
140
#: ../source/tutorial/model-data-for-keyword-search.txt:92
121
141
msgid ""
122
142
"*Ranking*. The keyword look ups described in this document do not provide a "
123
143
"way to weight results."
124
144
msgstr ""
145
+ "*权重*。 关键词之间没有权重支持,所有关键词的重要性都一样,无法优化结果排序。"
125
146
126
147
#: ../source/tutorial/model-data-for-keyword-search.txt:95
127
148
msgid ""
@@ -130,3 +151,7 @@ msgid ""
130
151
" in real-time. However, asynchronous bulk indexes may be more efficient for "
131
152
"some kinds of content and workloads."
132
153
msgstr ""
154
+ "*异步索引* MongoDBd的关键词索引的创建是同步实时的。这样对于及时得到最新的结果有帮助,但是"
155
+ "在某些场景下异步的批处理索引创建会更加搞效一点。"
156
+
157
+
0 commit comments