code: def _index(self, model):
          '''
          Elasticsearch multi types has been removed
          Use multi index unless set __msearch_index__.
          '''
          doc_type = model
          if not isinstance(model, str):
              doc_type = model.__table__.name
  
          index_name = doc_type
          if hasattr(model, "__msearch_index__"):
              index_name = model.__msearch_index__
  
          if doc_type not in self._indexs:
              self._indexs[doc_type] = Index(self._client, index_name, doc_type)
          return self._indexs[doc_typef _index(self, model):
          '''
          Elasticsearch multi types has been removed
          Use multi index unless set __msearch_index__.
          '''
          doc_type = model
          if not isinstance(model, str):
              doc_type = model.__table__.name
  
          index_name = doc_type
          if hasattr(model, "__msearch_index__"):
              index_name = model.__msearch_index__
  
          if doc_type not in self._indexs:
              self._indexs[doc_type] = Index(self._client, index_name, doc_type)
          return self._indexs[doc_type]
docs: Elasticsearch multi types has been removed
          Use multi index unless set __msearch_index__.