GAE Datastore支持“部分文本搜索”吗?

huangapple go评论64阅读模式
英文:

Does GAE Datastore support 'partial text search'?

问题

我是一个初学者。

我想使用Go语言在Google App Engine上创建一个信息管理系统。
用户将能够创建、编辑、删除和搜索实体。

我已经浏览了GAE网站,但在Datastore中找不到“部分文本搜索”的功能。
部分文本搜索,我指的是搜索包含输入的“部分文本”的实体。

或者,你能给我一些制作这样一个系统的提示吗?(免费的)

非常抱歉提出这样一个低级的问题。

英文:

I'm very beginner.

I want to make a information management system using Go language on Google App Engine.
Users will create, edit, delete and search entities.

I have navigated GAE site, but could not find 'partial text search' on Datastore.
Partial text search, I mean, search entities contain 'partial text' entered.

Or, can you give me a tip to make such a system. (for free)

Very Sorry for low-grade question.

答案1

得分: 1

你无法使用数据存储来完成这个操作,你需要使用全文搜索 API。不幸的是,目前 Go 还不支持该功能:最好的方法似乎是在你的应用中设置一个使用 Python 2.7 的模块,并公开搜索功能。

英文:

You can't do this with the datastore, you need to use the full-text search API. Unfortunately, that is not yet available with Go: apparently the best way to use it is to set up a module in your app that uses Python2.7, and exposes the search functionality.

huangapple
  • 本文由 发表于 2013年10月15日 17:01:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/19377152.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定