-
Notifications
You must be signed in to change notification settings - Fork 17
/
2019-06-18-hibernate-search-extension.adoc.po
176 lines (150 loc) · 8.68 KB
/
2019-06-18-hibernate-search-extension.adoc.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2022-05-12 15:52+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. type: YAML Front Matter: title
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy, no-wrap
msgid "New extension: Hibernate Search + Elasticsearch"
msgstr "新的扩展。Hibernate Search + Elasticsearch"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "In the 0.15.0 version of Quarkus, we introduced the Hibernate Search + Elasticsearch extension and, with 0.16.0, we added link:/guides/hibernate-search-elasticsearch[a guide] and https://github.com/quarkusio/quarkus-quickstarts/tree/main/hibernate-search-orm-elasticsearch-quickstart[a quickstart] explaining how to use it."
msgstr "在Quarkus的0.15.0版本中,我们引入了Hibernate Search + Elasticsearch扩展,在0.16.0版本中,我们增加了 link:/guides/hibernate-search-elasticsearch[一个指南] 和 link:https://github.com/quarkusio/quarkus-quickstarts/tree/main/hibernate-search-orm-elasticsearch-quickstart[一个快速入门] ,解释如何使用它。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "If you want to index your Hibernate ORM entities in Elasticsearch and don't mind updating your code from time to time, you're very welcome to become an early adopter and provide feedback."
msgstr "如果你想在Elasticsearch中索引你的Hibernate ORM实体,并且不介意不时地更新你的代码,我们非常欢迎你成为早期采用者并提供反馈。"
#. type: Title ==
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy, no-wrap
msgid "What is Hibernate Search?"
msgstr "什么是Hibernate搜索?"
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid ""
"This is an old time favorite of mine.\n"
"Back in the days, when I was developing business applications for customers, discovering Hibernate Search really changed the way we implemented search engines and our customers were very happy with the search features we provided from that moment on.\n"
"I soon started to contribute to it and... here I am."
msgstr "这是我一直以来的最爱。早在我为客户开发业务应用程序的时候,发现 Hibernate Search 真的改变了我们实现搜索引擎的方式,我们的客户从此对我们提供的搜索功能非常满意。从那时起,我们的客户对我们提供的搜索功能非常满意。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "With an additional dependency and some configuration, you end up being able to provide full text search features to your users, just by synchronizing your Hibernate ORM entities to a full text index."
msgstr "通过额外的依赖和一些配置,你最终能够为你的用户提供全文搜索功能,只需将你的Hibernate ORM实体同步到一个全文索引。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "And when I say full text search, I mean the real one, backed by http://lucene.apache.org/[Apache Lucene] or https://www.elastic.co/[Elasticsearch]."
msgstr "当我说全文搜索时,我指的是真正的搜索,由 link:http://lucene.apache.org/[Apache Lucene] 或 link:https://www.elastic.co/[Elasticsearch] 支持。"
#. type: Title ==
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy, no-wrap
msgid "Why is it better with Quarkus?"
msgstr "为什么用Quarkus更好呢?"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "The nice thing with using Hibernate Search on Quarkus is that, when compiling a native application with GraalVM, we build the Hibernate Search metamodel at compilation time."
msgstr "在Quarkus上使用Hibernate Search的好处是,当用GraalVM编译一个本地应用程序时,我们在编译时建立Hibernate Search元模型。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "Expect your native application to start faster than ever!"
msgstr "期待你的本地应用程序的启动速度比以往更快!"
#. type: Title ==
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy, no-wrap
msgid "How do I use it?"
msgstr "我如何使用它?"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "It can't be easier."
msgstr "这不可能更容易。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "First, add the `quarkus-hibernate-search-elasticsearch` extension to your Quarkus application:"
msgstr "首先,将 `quarkus-hibernate-search-elasticsearch` 扩展到你的Quarkus应用程序。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "(or you can directly add the `io.quarkus:quarkus-hibernate-search-elasticsearch` dependency to your `pom.xml`)"
msgstr "(或者你可以直接将 `io.quarkus:quarkus-hibernate-search-elasticsearch` 依赖关系添加到你的 `pom.xml` )"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "Then, take one of your Hibernate ORM entities and add a few annotations:"
msgstr "然后,从你的Hibernate ORM实体中选择一个,并添加一些注解。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "Declare your entity as part of the full text index"
msgstr "宣布你的实体为全文索引的一部分"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "Add a full text field using the `standard` analyzer provided by Elasticsearch"
msgstr "使用Elasticsearch提供的 `standard` 分析器,添加一个全文字段。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "Then add some additional configuration to your `src/main/resources/application.properties`:"
msgstr "然后在你的 `src/main/resources/application.properties` ,添加一些额外的配置。"
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid ""
"I won't give all the details here.\n"
"You should just know that this is a good configuration for testing, but definitely not a good one for production!"
msgstr "我不会在这里介绍所有细节。你只需知道,这种配置适合测试,但绝对不适合生产!"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "And that's it."
msgstr "就这样了。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "From now on, if you start an Elasticsearch cluster locally with the default port, your `Book` entities will be indexed in this cluster."
msgstr "从现在开始,如果你用默认端口在本地启动一个Elasticsearch集群,你的 `Book` 实体就会在这个集群中被索引。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "And to search for them (isn't it the whole point of it?), we provide an easy to use DSL:"
msgstr "而为了搜索它们(这不就是它的全部意义吗?),我们提供了一个易于使用的DSL。"
#. type: Title ==
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, no-wrap
msgid "Going further"
msgstr "进一步探索"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "This is just a small taste of what you can do with our Hibernate Search + Elasticsearch extension."
msgstr "这只是你能用我们的Hibernate Search + Elasticsearch扩展做的一小部分。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "For instance, understanding the concept of text analysis is especially important for full text search and properly setting up analyzers depending on your requirements necessitates a bit more work."
msgstr "例如,理解文本分析的概念对全文搜索尤其重要,根据你的要求正确设置分析器,就必须多做一点工作。"
#. type: Plain text
#: _posts/2019-06-18-hibernate-search-extension.adoc
#, fuzzy
msgid "You will find a lot more information about how you can set everything up properly in link:/guides/hibernate-search-elasticsearch[our extensive guide]."
msgstr "您可以在 link:/guides/hibernate-search-elasticsearch[我们的详尽指南] 中找到更多关于如何正确设置一切的信息。"