You need to get the names of all the indexes on your current collection. What is the best way to accomplish this?
db.people.getIndexes();
db.people.getIndexKeys();
db.people.reIndex({names: 1});
db.people.getName();