Parent Child Relationships within a single index with same document types


(Stephen Le Bel) #1

Is there a way to have a parent child relationship built between 2 documents of the same type in the same index?

I used this example, but type is the same as my_parent
PUT my_index
{
"mappings": {
"my_parent": {},
"my_child": {
"_parent": {
"type": "my_parent"
}
}
}
}
I am trying to graph the relationships but it is only one direction as parent is specified and children are not.

The Data feed has this data
{
"id": "59cbde1446583e3f80010163",
"parent": "59cab84446583e3f8000bb94",
}


(system) #2

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