您的位置:首页 > 编程语言 > Java开发

GAE for Java exception: no matching index found.

2010-09-12 13:58 447 查看


GAE for Java 版现在还不是非常完善,至少目前 appcfg 还没有删除已建索引的命令。 查了一下邮件列表,早在去年就有人“GAE for 如何删除已建索引”。

现在这个问题依旧存在,权宜之计是使用 Python SDK 的 appcfg vacuum_indexes 命令进行删除。

步骤:


To remove your indexes from your java app using the python SDK

1) download the python sdk (下载 Python SDK)
2) in your java project create a app.yaml file with the following
contents (在项目根目录创建 app.yaml 文件,内容如下)

application: YOURJAVA_APPID (改为你的应用标识)
version: 1
runtime: python
api_version: 1

handlers:
- url: .*
script: main.py

3) from within your java app directory run (assuming appcfg.py is in
your path) (在应用根目录下执行如下命令)
appcfg.py vacuum_indexes .

4) follow the prompts to remove each index. (根据提示进行索引删除)

5) delete the app.yaml file (删除 app.yaml)

6) star the issue here http://code.google.com/p/googleappengine/issues/detail?id=1893 (在GAE 开发项目中关注该问题)


这样一来,基本是解决问题了。希望 GAE for Java 早日修复这个问题。

本文是使用 B3log Solo简约设计の艺术 进行同步发布的。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐