boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 问个关于autocomplete的问题
相关主题
一道onsite题目求指导
问个题目
问个算法题7
问个近期亚麻高频题目
问个snapchat的设计题
问两道onsite题目
G onsite面经兼求内推
谁能科普Time Series Daemon (TSD)系统设计
Uber’s CFO is leaving… Let the IPO speculation begin
Don't update your monster resume everyday.
相关话题的讨论汇总
话题: item话题: boys话题: 100266a话题: title
进入JobHunting版参与讨论
1 (共1页)
i*****r
发帖数: 26
1
题目如下,这个题目的意思是,在搜索的box里面输入字符,高亮提示可能输入结果?
按下“搜索”这个button,然后显示推荐的结果吗?
那么 “With the following params:......”这一段是什么意思呢?这些参数,是用
来搜索的吗?其中“Keep the value as “100266a” ,在api里面也没有这一个参数
啊?
恳请大家指点,谢谢。
VIki has a simple autocomplete api. Example: https://api.viki.io/v4/search.
json?c=boys&per_page=5&with_people=true&app=100266a&t=1440586215
With the following params:
c: The search string
per_page: number of results to return, keep the value at “5”
with_people: Flag to indicate search result to include celebrity items
app: ID of application making the call. Keep the value as “100266a“
t: Timestamp
A typical item return in the search is as follows:
{
id: "50c",
t: "series",
tt: "Boys Over Flowers",
u:
{
w: "/tv/50c-boys-over-flowers",
a: "/v4/series/50c.json"
},
i: "http://0.viki.io/c/ed0/16e/06d/boys-over-flowers_590x330.jpg?x=b",
e: 25,
oc: "kr",
te: "Niños antes que flores",
tj: "花より男子(韓国版)",
tf: "Boys Over Flowers",
owner: "3co",
blocked: false,
blocking:
{
geo: false,
paywall: false
}
}
The payload explained:
id: ID of the item
t: type of the item
tt: Title of the item in English
u: URL, where “w” is the url path and “a” is the api url
i: The image of the item
e: number of episodes (for series)
oc: Origin Country. The country the show is from. 2 characters country code
te: title in Spanish
tj: title in Japanese
tf: title in French
owner: The owner code of the item. Ignore.
blocked: Flag to indicate if the item is viewable by the requsting user
blocking: Hash to indicate the reason of blocking. Ignore.
The exercise is to implement a search box with autocomplete.
1 (共1页)
进入JobHunting版参与讨论
相关主题
Don't update your monster resume everyday.
国庆节 狗家面经
赞amazon西雅图的马博士
发个非常规Groupon面经
请教个用trie实现search autocomplete的问题
推特内推 - 有后台大规模分布式系统或者函数编程经验优先
how the fuck can #DNCLeaks not be a trending topic??!!
gmail/google 搜索问题,你一定也遇到过
终于可以上班了
Microsoft's interview questions
相关话题的讨论汇总
话题: item话题: boys话题: 100266a话题: title