code: def get_document_models():
      
      mappings = {}
      for i in get_index_names():
          for m in get_index_models(i):
              key = "%s.%s" % (i, m._meta.model_name)
              mappings[key] = m
      return mappings
docs: Return dict of index.doc_type: model.