ElasticSearch parent/child on different indexes

后端 未结 2 1706
再見小時候
再見小時候 2021-01-07 19:22

have two objects: humans and belongings. I want to specify a _parent of a belonging to be a specific human. ElasticSearch provides this ability via the _parent mapping. Ho

2条回答
  •  温柔的废话
    2021-01-07 19:39

    2020 Update - ElasticSearch 7.8

    As mentioned in the docs link https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html

    The join data type is a special field that creates parent/child relation within documents of the same index.
    

    This means that both parent/child must be in the SAME index.

提交回复
热议问题