ElasticSearch parent/child on different indexes

后端 未结 2 1686
再見小時候
再見小時候 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.

    0 讨论(0)
  • 2021-01-07 19:43

    You are correct in saying "different index, different shard" - meaning the answer to question #1 is no. With that, #2 cannot be answered.

    0 讨论(0)
提交回复
热议问题