Although indian castes historically have been endogamus, increasing rates of exogamy have made classifying children more difficult.
Nothing here is more critical for you to keep in mind than the way that endogamy is unfamiliar to the general population of India. The different Gotras of India are and have been exogamous: so are alternate gatherings with totemic association. It is no misrepresentation to state that with the general population of India exogamy is a doctrine and none set out encroach it, to such an extent that, despite the endogamy of the Castes inside them, exogamy is entirely watched and that there are more thorough punishments for disregarding exogamy than there are for damaging endogamy.