'Set indexes using ``indexes`` param
:param indexes: indexes to set in db
:type indexes: iterable of :py:class:`CodernityDB.index.Index` objects.'

def set_indexes(self, indexes=[]):

    for ind in indexes:
        self.add_index(ind, create=False)
