How to add a new relation to an existing join field


(Pancs Li) #1

hi,guys
I use Elasticsearch and the version is 6.0 ,I created a parent-child relationship field in accordance with the official document.The document said “It is possible to add a new relation to an existing join field.”,But did not tell how to do it specifically.I tried many ways without success,The elasticsearch return the same error “Field [_parent_join] is defined twice in [doc]”,I want to know how to do it.
thanks!


Add new relations after creating the mapping
(Christian Dahlqvist) #2

What is it you are trying to achieve?


(Pancs Li) #3

Just want to know how to update the join field.


(Christian Dahlqvist) #4

Are you looking to move a child from one parent to another?


(Pancs Li) #5

I created a join field in accordance with the official document,the question and the answer。Now,I want to add another field named “commet”,This field is the answer field’s son 。How to add existed join field。thanks
The document said “It is possible to add a new relation to an existing join field.”


(Christian Dahlqvist) #6

It sounds like you are looking for this example.


(Pancs Li) #7

thanks!,But how to add a new relation to an existing join field?


(Christian Dahlqvist) #8

I am not sure I follow what you are trying to do. What does the structure you want to implement look like?


(Pancs Li) #9


(Pancs Li) #10


Specific details how to do it


(Pancs Li) #11

how to update?


(system) #12

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.