Child Aggregation Mappingedit

To use the Children Aggregation, you have to make sure a _parent mapping is in place.

Here we create the project index with two mapped types, Project and CommitActivity and add a _parent mapping to CommitActivity, specifying the Project type as the parent

var createProjectIndex = TestClient.GetClient().CreateIndex(typeof(Project), c => c
    .Mappings(map => map
        .Map<Project>(tm => tm.AutoMap())
        .Map<CommitActivity>(tm => tm
            .Parent<Project>() 
        )
    )
);

Set the parent of CommitActivity to the Project type