moved Index.toDocument() to CreateIndexesOperation