How to get parent with child data in single query in elastic search(C#)

public abstract class MyDocument
{
public int Id { get; set; }
public JoinField MyJoinField { get; set; }
}

public class MyParent : MyDocument
{
[Text]
public string Name{ get; set; }
public DateTime DOB { get; set; }
}

public class MyChild : MyDocument
{
[Text]
public string Address { get; set; }
public string MobileNumber { get; set; }
}

I have two classes want to get MyParent and MyChild result into single query with data.

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