一位同事得到了
DocumentTypeError: Document type is not supported.
在开发应用服务器上使用 ndb 文档类型调用订阅
时。
ndb 和 Prospective Search 兼容吗?
最佳答案
是的,ndb 和 Prospective search 是兼容的,但是你需要为 ndb 使用 prospective_search:
从 google.appengine.ext.ndb 导入 prospective_search
关于错误,来源:
get_document() Raises DocumentTypeError: if document class is not recognized.
http://appengine-ndb-experiment.googlecode.com/hg/ndb/prospective_search.py
关于python - 前瞻性搜索是否支持 ndb.model?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12247610/