未来搜索支持吗ndb.型号?

2024-09-28 21:18:48 发布

您现在位置:Python中文网/ 问答频道 /正文

一个同事正在

DocumentTypeError: Document type is not supported.

在dev appserver上使用ndb文档类型调用Subscribe时。
ndb前瞻性搜索兼容吗?在


Tags: 文档dev类型istypenotsubscribedocument
1条回答
网友
1楼 · 发布于 2024-09-28 21:18:48

是的,ndb和Prospective search兼容,但您需要对ndb使用Prospective_search:

from google.appengine.ext.ndb import prospective_search

关于错误,来源:

get_document() Raises DocumentTypeError: if document class is not recognized.

http://appengine-ndb-experiment.googlecode.com/hg/ndb/prospective_search.py

相关问题 更多 >