def create_index(self, name, recreate=False, _type='default'):
        """
        Create an index.
        If recreate is True, recreate even if already there.
        """
        if name not in self.indexes or recreate:
            self.build_index(name, _type)
Create an index.
        If recreate is True, recreate even if already there.