<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)