我正在构建'jobs'或'professional resume'webapp。这是我的数据模型建立:Google App Engine:实体名称的自动完成搜索
我有一份简历型号:
class Resume(ndb.Model):
full_name = ndb.StringProperty(required = True)
education = ndb.StructuredProperty(Education, repeated = True)
experience = ndb.StructuredProperty(Experience, repeated = True)
skill = ndb.StructuredProperty(Skill, repeated = True)
这里是Skill(ndb.Model)
为skill
ndb.StructuredProperty(Skill)
的Resume(ndb.Model)
内:
class Skill(ndb.Model):
skill = ndb.StringProperty(required = True)
description = ndb.TextProperty()
我想实现以下内容:
- 输入文字以搜索'ski二'。然后返回与该技能相关联的
Resume
实体列表。 - 此外,我们如何才能使文本输入“自动完成”,以便用户在键入时可以看到什么
skill
实际可用?重复搜索不存在的技能会是一种糟糕的体验。
谢谢你的任何提示。
对于自动完成请参阅https://stackoverflow.com/questions/7795814/how-to-create-autocomplete-with-gae – blueCat