我能够将复合索引添加到 index.yaml 文件并让它工作,而无需从数据存储中删除和重新加载数据

I am able to add composite indexes to index.yaml file and get it to work without removing and reloading the data from datastore

我认为这是不可能的,如果您添加了新索引,您必须重新加载所有数据。

这应该发生吗?

当 Cloud Datastore builds a new index 时,它包含与索引匹配的任何现有实体,因此无需更新现有数据。

但是,如果您插入了带有 unindexed properties 的实体并决定要在这些属性上定义索引,那么您需要更新每个实体以将 属性 标记为已编入索引。