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
* 完成Parent-Child第1部分的翻译
* revise nested model name
* reisve pull request according to first inner team review
* reisve pull request according to first inner team review
* revise docvalue and maps
* revise 1 to 一
All that is needed in order to establish the parent-child relationship is to
36
-
specify which document type should be the parent of a child type.((("mapping (types)", "parent-child")))((("parent-child relationship", "parent-child mapping"))) This must
37
-
be done at index creation time, or with the `update-mapping` API before the
38
-
child type has been created.
19
+
建立父-子文档映射关系时只需要指定某一个文档 type 是另一个文档 type 的父亲。 ((("mapping (types)", "parent-child"))) ((("parent-child relationship", "parent-child mapping"))) 该关系可以在如下两个时间点设置:1)创建索引时;2)在子文档 type 创建之前更新父文档的 mapping。
39
20
40
-
As an example, let's say that we have a company that has branches in many
41
-
cities. We would like to associate employees with the branch where they work.
42
-
We need to be able to search for branches, individual employees, and employees
43
-
who work for particular branches, so the nested model will not help. We
44
-
could, of course,
45
-
use <<application-joins,application-side-joins>> or
46
-
<<denormalization,data denormalization>> here instead, but for demonstration
0 commit comments