@@ -5,28 +5,31 @@ msgstr ""
55"Report-Msgid-Bugs-To : \n "
66"POT-Creation-Date : 2014-09-03 15:39-0400\n "
77"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"
99"
Language-Team :
LANGUAGE <[email protected] >\n "
1010"MIME-Version : 1.0\n "
1111"Content-Type : text/plain; charset=UTF-8\n "
1212"Content-Transfer-Encoding : 8bit\n "
1313
1414#: ../source/tutorial/model-data-for-keyword-search.txt:3
1515msgid "Model Data to Support Keyword Search"
16- msgstr ""
16+ msgstr "关键词搜索建模 "
1717
1818#: ../source/tutorial/model-data-for-keyword-search.txt:9
1919msgid ""
2020"Keyword search is *not* the same as text search or full text search, and "
2121"does not provide stemming or other text-processing features. See the :ref"
2222":`limit-keyword-indexes` section for more information."
2323msgstr ""
24+ "关键词搜索和文本搜索及全文检索不同,它不提供类似于断词或者词干提取等文本处理功能。"
25+ "更多相关介绍请参见 :ref:`limit-keyword-indexes` 部分。"
2426
2527#: ../source/tutorial/model-data-for-keyword-search.txt:14
2628msgid ""
2729"In 2.4, MongoDB provides a text search feature. See :doc:`/core/index-text` "
2830"for more information."
2931msgstr ""
32+ "从2.4版本开始, MongoDB提供全文检索功能: :doc:`/core/index-text`。"
3033
3134#: ../source/tutorial/model-data-for-keyword-search.txt:17
3235msgid ""
@@ -35,6 +38,8 @@ msgid ""
3538"to use regular expression pattern matches. However, for many operations on "
3639"text, these methods do not satisfy application requirements."
3740msgstr ""
41+ "如果你的应用需要对某个文本字段进行查询,你可以用完全匹配或使用正则表达式 :query:`$regex` 。"
42+ "但是很多情境下这些手段不能够满足应用的需求。"
3843
3944#: ../source/tutorial/model-data-for-keyword-search.txt:23
4045msgid ""
@@ -44,10 +49,13 @@ msgid ""
4449":ref:`multi-key index <index-type-multikey>`, this pattern can support "
4550"application's keyword search operations."
4651msgstr ""
52+ "下面这个范式介绍了一种在同一个文档内使用数组来保存关键词再对数组建多键索引 "
53+ "(:ref:`multi-key index <index-type-multikey>`)的方式"
54+ "来实现关键词搜索。"
4755
4856#: ../source/tutorial/model-data-for-keyword-search.txt:30
4957msgid "Pattern"
50- msgstr ""
58+ msgstr "范式 "
5159
5260#: ../source/tutorial/model-data-for-keyword-search.txt:32
5361msgid ""
@@ -56,46 +64,55 @@ msgid ""
5664"array. You can then create a :ref:`multi-key index <index-type-multi-key>` "
5765"on the array and create queries that select values from the array."
5866msgstr ""
67+ "为实现关键词搜索,在文档内增加一个数组字段并把每一个关键词加到数组里。"
68+ "然后你可以对该字段建一个 :ref:`多键索引 <index-type-multi-key>`。"
69+ "这样你就可以对数组里面的关键词进行查询了。"
5970
6071#: ../source/tutorial/model-data-for-keyword-search.txt:0
6172msgid "Example"
62- msgstr ""
73+ msgstr "例子 "
6374
6475#: ../source/tutorial/model-data-for-keyword-search.txt:40
6576msgid ""
6677"Given a collection of library volumes that you want to provide topic-based "
6778"search. For each volume, you add the array ``topics``, and you add as many "
6879"keywords as needed for a given volume."
6980msgstr ""
81+ "假如你希望对图书馆的藏书实现一个按主题搜索的功能。 对每一本书,你可以加一个数组字段"
82+ " ``topics`` 并把这本书相关的主题都加到这个数组里。"
7083
7184#: ../source/tutorial/model-data-for-keyword-search.txt:44
7285msgid "For the ``Moby-Dick`` volume you might have the following document:"
73- msgstr ""
86+ msgstr "对于 ``Moby-Dick`` 这本书你可能会有以下这样的文档: "
7487
7588#: ../source/tutorial/model-data-for-keyword-search.txt:56
7689msgid "You then create a multi-key index on the ``topics`` array:"
77- msgstr ""
90+ msgstr "然后对 ``topics`` 字段建多键索引: "
7891
7992#: ../source/tutorial/model-data-for-keyword-search.txt:62
8093msgid ""
8194"The multi-key index creates separate index entries for each keyword in the "
8295"``topics`` array. For example the index contains one entry for ``whaling`` "
8396"and another for ``allegory``."
8497msgstr ""
98+ "多键索引会对数组里的每一个值建立一个索引项。在这个例子里 ``whaling`` 和 "
99+ "``allegory`` 个有一个索引项。"
85100
86101#: ../source/tutorial/model-data-for-keyword-search.txt:66
87102msgid "You then query based on the keywords. For example:"
88- msgstr ""
103+ msgstr "现在你可以按关键词进行搜索,如: "
89104
90105#: ../source/tutorial/model-data-for-keyword-search.txt:72
91106msgid ""
92107"An array with a large number of elements, such as one with several hundreds "
93108"or thousands of keywords will incur greater indexing costs on insertion."
94109msgstr ""
110+ "如果数组较大,达到几百或者几千以上的关键词,那么文档插入操作时的索引维护开支会"
111+ "大大增加。"
95112
96113#: ../source/tutorial/model-data-for-keyword-search.txt:79
97114msgid "Limitations of Keyword Indexes"
98- msgstr ""
115+ msgstr "关键词索引的局限性 "
99116
100117#: ../source/tutorial/model-data-for-keyword-search.txt:81
101118msgid ""
@@ -104,24 +121,28 @@ msgid ""
104121"are not sufficient or comparable to full-text products in the following "
105122"respects:"
106123msgstr ""
124+ "MongoDB 的这种关键词搜索方案和专门的全文搜索工具软件相比有以下的局限性:"
107125
108126#: ../source/tutorial/model-data-for-keyword-search.txt:86
109127msgid ""
110128"*Stemming*. Keyword queries in MongoDB can not parse keywords for root or "
111129"related words."
112130msgstr ""
131+ "*词干提取*。 MongoDB的关键词查询无法对相近词进行归并处理。"
113132
114133#: ../source/tutorial/model-data-for-keyword-search.txt:89
115134msgid ""
116135"*Synonyms*. Keyword-based search features must provide support for synonym "
117136"or related queries in the application layer."
118137msgstr ""
138+ "*同义词*。 对同义词的处理目前必须在应用程序端完成。MongoDB无法支持这一点。"
119139
120140#: ../source/tutorial/model-data-for-keyword-search.txt:92
121141msgid ""
122142"*Ranking*. The keyword look ups described in this document do not provide a "
123143"way to weight results."
124144msgstr ""
145+ "*权重*。 关键词之间没有权重支持,所有关键词的重要性都一样,无法优化结果排序。"
125146
126147#: ../source/tutorial/model-data-for-keyword-search.txt:95
127148msgid ""
@@ -130,3 +151,7 @@ msgid ""
130151" in real-time. However, asynchronous bulk indexes may be more efficient for "
131152"some kinds of content and workloads."
132153msgstr ""
154+ "*异步索引* MongoDBd的关键词索引的创建是同步实时的。这样对于及时得到最新的结果有帮助,但是"
155+ "在某些场景下异步的批处理索引创建会更加搞效一点。"
156+
157+
0 commit comments