def _index_and_mapping(self, namespace):
index, doc_type = namespace.split('<STR_LIT:.>', <NUM_LIT:1>)<EOL>return index.lower(), doc_type<EOL>
Helper method for getting the index and type from a namespace.