Find all related documents of two related fields in an index

Hi,
I am new to Elasticsearch and I need some help to retrieve related documents from Elasticsearch

I have an index with the following structure
| parent | child | ... |
| 0000001 | 0000001 | ... |
| 0000001 | 0000002 | ... |
| 0000002 | 0000003 | ... |
| 0000003 | 0000003 | ... |
| 0000004 | 0000005 | ... |
| 0000006 | 0000006 | ... |

I need a query or solution in Elasticsearch to retrieve all the related documents of 0000001 that is
| parent | child | ... |
| 0000001 | 0000001 | ... |
| 0000001 | 0000002 | ... |
| 0000002 | 0000003 | ... |
| 0000003 | 0000003 | ... |

0000001-> 0000002 -> 0000003

Thank you

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