使用 ndb 模型通过 Google 应用引擎进行全文搜索
我已经使用下一个数据库模块(ndb)制作了一个谷歌应用程序来创建我的模型。现在的问题是我想在这些模型的字段上部署搜索,并且我找到了两个模块可以做到这一点:1.官方附带的谷歌应用程序引擎(appengine/google/ext/search)和2.gae文本搜索(http://code.google.com/p/gae-text-search/)。这两者都为旧的数据库模块属性提供了可搜索模型。有什么方法可以使用 ndb 和 google app engine 1.6.2 进行全文搜索。另外我想将这些搜索查询存储到数据存储中,我怎样才能实现这一点?我正在使用 python 2.7 进行开发。提前致谢。
I have made a google app using next db module (ndb) to create my models. Now the problem is i want to deploy search over the fields of these models, and i have found two modules to do that: 1. The officially shipped with google app engine (appengine/google/ext/search) and 2. gae text search (http://code.google.com/p/gae-text-search/). Both of these provide the Searchable Model for the old db module properties. Is there any way i can do full text search using ndb and google app engine 1.6.2. Also i want to store those search queries to the datastore, how can i achieve that too? I am using python 2.7 for my development. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
最好的解决方案是等到App Engine的全文搜索发布。他们目前处于可信测试阶段,所以很快就会推出。如果您现在推出自己的解决方案,您可能会在几个月后重做它。
The best solution is to wait until app engine's full text search is released. They are currently in trusted tester phase, so it's coming soon. If you roll your own solution now, you may end up redoing it in a few months.
请访问 https://developers.google.com/appengine/docs/python/search/
check at https://developers.google.com/appengine/docs/python/search/
从:
https://cloud.google.com/appengine/docs/python/search/
执行搜索:
索引对象:
From:
https://cloud.google.com/appengine/docs/python/search/
Performing a search:
Indexing an object: