code: def _index_and_mapping(self, namespace):
          
          index, doc_type = namespace.split(".", 1)
          return index.lower(), doc_type
docs: Helper method for getting the index and type from a namespace.