I know that in the area now known as India, there was a rigid caste system as a part of traditional Hindu beliefs. I also know that there are a number of Indian martial arts going back centuries. I have a vague idea that a spear was considered to be more noble than a sword, and that the sword was considered more noble than unarmed fighting, which was seen as barbaric. People in lower castes were forbidden to use any sort of weapon that was considered above them.
My question is: What, if any, was the relationship between caste and martial skill? As in, what castes were allowed to use what weapons/styles?