yet another overload of addIndex, for the cases where an IndexDefinition is available and needs to be created as passed