The IndexMapping.xml file lets you configure the index mapping.
For each Relation and Entity, set a Key tag with:
Relation
Entity
Key
index
database