EmptyIndexError - <whoosh.filedb.gae.DatastoreStorage 对象在 0x0667F130> 中不存在索引“MAIN”

Cof*_*ack 5 python django google-app-engine whoosh

我正在按照他们的快速入门指南在一个项目上测试 Whoosh:

http://whoosh.readthedocs.org/en/latest/quickstart.html

唯一的区别是,我的项目正在运行 Google App Engine,而不是:

ix = create_in("indexdir", schema)
Run Code Online (Sandbox Code Playgroud)

我有:

from whoosh.filedb.gae import DatastoreStorage
ix = DatastoreStorage().create_index(schema)
Run Code Online (Sandbox Code Playgroud)

我得到:

EmptyIndexError -  Index 'MAIN' does not exist in <whoosh.filedb.gae.DatastoreStorage object at 0x0667F130>
Run Code Online (Sandbox Code Playgroud)