建立在谷歌应用程序引擎表格自动完成 [英] Create Form Auto Complete in Google App Engine

查看:95
本文介绍了建立在谷歌应用程序引擎表格自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立一个标签领域的自动完成功能样等应用程序引擎...任何想法如何,我应该去的过程?

I want to build a auto complete feature for a tags field like in SO on App Engine ... any idea how I should go about the process?

服务器端算法中? - ?应该是什么逻辑那里自动完成

Server Side Algo? - What logic should be there for auto-complete?

App Engine的实现? - 我应该是这个数据存储架构?

App Engine implementation? - What should be the Datastore schema for this?

推荐答案

嘿。我前几天就解决这个问题。数据存储模式其实并不重要,只要你有一个StringProperty领域,你想搜索。由于应用程序引擎不支持全文搜索的是,你必须去与某种形式的开始搜索,这是不是100%,但相当好用于查找标签。

Hey. I came around this question a few days ago. The datastore schema doesn't really matter as long as you have a StringProperty field that you'd like to search on. Since App Engine does not support full text searching yet, you'll have to go with some sort of a "starts with" search, which is not 100% but quite okay for looking up tags.

还有这是对谷歌I / O 2010年的code是用Java编写的,但原理是一样的做就如何落实在谷歌code博客上GAE基本搜索的讨论:<一href="http://google$c$c.blogspot.com/2010/05/google-app-engine-basic-text-search.html">http://google$c$c.blogspot.com/2010/05/google-app-engine-basic-text-search.html

There's a discussion on how to implement basic search on GAE on the Google Code blog which was done for Google I/O 2010. The code is written in Java but the principles are the same: http://googlecode.blogspot.com/2010/05/google-app-engine-basic-text-search.html

至于逻辑,以及这是完全取决于你。我看到,用以查询的每一个关键preSS,其他人使用之类的查询系统。但GAE的限制不允许LIKE查询。更多的讨论在这个线程:<一href="http://stackoverflow.com/questions/47786/google-app-engine-is-it-possible-to-do-a-gql-like-query">Google应用程序引擎:是否有可能做一个GQL LIKE查询

As to the logic, well this is totally up to you. I saw systems that use "starts with" queries on every key press, others use LIKE queries. But the limitations of GAE don't allow LIKE queries. More discussions in this thread: Google App Engine: Is it possible to do a Gql LIKE query?

这篇关于建立在谷歌应用程序引擎表格自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆