I have a parent-child type that needs to be configured for an index. So, I cannot add one type first before the other as it would violate the principle that "Parent Child relationship needs to be established at index time. "
So, I have created an index and want to add two types that have a parent-child relationship. Something like this from the parent-child-docs
I plan to do the same thing but using the Java API, but it doesn't seem like there is an api that adds types only based on the mapping. All the apis seem to explicitly require the mappingType name to be specified.
ElasticSearch Version: 2.3.0