You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 21, 2021. It is now read-only.
Copy file name to clipboardexpand all lines: 200_Language_intro/50_One_language_per_field.asciidoc
+8-9
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
[[one-lang-fields]]
2
-
=== One language per field
2
+
=== One Language per Field
3
3
4
4
For documents that represent entities like products, movies, or legal notices, it is common((("fields", "one language per field")))((("languages", "one language per field")))
5
-
for the same text to be translated into several languages. While each translation
5
+
for the same text to be translated into several languages. Although each translation
6
6
could be represented in a single document in an index per language, another
7
7
reasonable approach is to keep all translations in the same document:
8
8
@@ -59,11 +59,10 @@ PUT /movies
59
59
60
60
Like the _index-per-language_ approach, the _field-per-language_ approach
61
61
maintains clean term frequencies. It is not quite as flexible as having
62
-
separate indices. While it is easy to add a new field using the
63
-
<<updating-a-mapping,`update-mapping` API>>, those new fields may require new
64
-
custom analyzers, which can only be setup at index creation time. As a
65
-
workaround, you can {ref}indices-open-close.html[close] the index, add the new
66
-
analyzers with the {ref}indices-update-settings.html[`update-settings` API],
62
+
separate indices. Although it is easy to add a new field by using the <<updating-a-mapping,`update-mapping` API>>, those new fields may require new
63
+
custom analyzers, which can only be set up at index creation time. As a
64
+
workaround, you can http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html[close] the index, add the new
65
+
analyzers with the http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-update-settings.html[`update-settings` API],
67
66
then reopen the index, but closing the index means that it will require some
0 commit comments