Update indices.py

Fix bug in building the path to put mapping on a doc_type of indexes