Support ensureIndex() and createIndex() calls