Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit f87a578

Browse files
committedNov 23, 2014
Edited 200_Language_intro/50_One_language_per_field.asciidoc with Atlas code editor
1 parent 163097e commit f87a578

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed
 

‎200_Language_intro/50_One_language_per_field.asciidoc

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[[one-lang-fields]]
2-
=== One language per field
2+
=== One Language per Field
33

44
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
66
could be represented in a single document in an index per language, another
77
reasonable approach is to keep all translations in the same document:
88

@@ -59,11 +59,10 @@ PUT /movies
5959

6060
Like the _index-per-language_ approach, the _field-per-language_ approach
6161
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],
6766
then reopen the index, but closing the index means that it will require some
6867
downtime.
6968

@@ -85,6 +84,6 @@ GET /movies/movie/_search
8584
}
8685
--------------------------------------------------
8786
<1> This search queries any field beginning with `title` but
88-
boosts the `title_es` field by 2. All other fields have
89-
a neutral boost of 1.
87+
boosts the `title_es` field by `2`. All other fields have
88+
a neutral boost of `1`.
9089

0 commit comments

Comments
 (0)
This repository has been archived.