简体   繁体   English

在数据存储索引中忽略 autoGenerate=“false”。xml

[英]autoGenerate=“false” is ignored in datastore-indexes.xml

I've deleted datastore-indexes-auto.xml and local_db.bin, set autoGenerate="false" in in datastore-indexes.xml, and restarted the dev server.我删除了 datastore-indexes-auto.xml 和 local_db.bin,在 datastore-indexes.xml 中设置 autoGenerate="false",然后重新启动开发服务器。 Still, it persists in automatically generating indexes and writing them to datastore-indexes-auto.xml.尽管如此,它仍然自动生成索引并将它们写入 datastore-indexes-auto.xml。

I'm using appengine 1.4.3 for Java with the latest google plugin for eclipse.我正在使用适用于 Java 的 appengine 1.4.3 以及适用于 eclipse 的最新谷歌插件。

Any secrets I need to know about to get the dev server to throw an exception instead of silently creating the index?为了让开发服务器抛出异常而不是静默创建索引,我需要知道什么秘密?

I had this same problem, and it turns out I was calling the file datastore-indices.xml , rather than datastore-indexes.xml .我遇到了同样的问题,事实证明我正在调用文件datastore-indices.xml ,而不是datastore-indexes.xml Are you sure you called the file exactly right?您确定您完全正确地调用了该文件吗? It should be in war/WEB-INF/datastore-indexes.xml -- not in appengine-generated .它应该在war/WEB-INF/datastore-indexes.xml中——而不是在appengine-generated中。

It took awhile to find the documentation on this -- it's under "Configuration" -- Datastore Index Configuration .花了一段时间才找到这方面的文档——它在“配置”——数据存储索引配置下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM