搜索建议智能提示
最近在琢磨是不是给 Brick4.com 加上实时搜索建议。但是细思考下来,简体中文、正体中文、拼音 之间的匹配关联这些都不好解决。如果直接调用百度之类通用搜索引擎现有的方案,给过来的词太“通用”了,与积木关联不大。所以这个功能先不上了。
因此只列几个东西,不提供具体实现方案:
- 搜狗
http://w.sugg.sogou.com/sugg/ajaj_json.jsp?type=wxart&key=zhong
window.sogou.sug(["zhong",["中国银行","中小学教师资格考试","中秋节","中秋节放假安排","中国电信","中元节","中南大学","中国新歌声","中秋","中国海洋大学"],["0;4;0;0","1;4;0;0","2;4;0;0","3;4;0;0","4;4;0;0","5;4;0;0","6;4;0;0","7;4;0;0","8;4;0;0","9;4;0;0"],["","","","","","","","","",""],["0"]],-1);
- 百度
https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=zhong
http://unionsug.baidu.com/su?wd=zhong
window.baidu.sug({q:"zhong",p:false,s:["中国知网","中国银行","中通","中国地图","中国移动","中国移动网上营业厅","中国人事考试网","中国工商银行","中通快递","中国有嘻哈"]});
- 淘宝
https://suggest.taobao.com/sug?q=zhong
{"result":[["中年女秋装","17612021"],["中老年女装","8989764"],["中老年秋装女","4040169"],["中秋月饼","413567"],["中老年秋装女外套新款 妈妈","6055700"],["中性笔","1383431"],["中袖上衣女","1027054"],["中秋礼品","318089"],["中长款t恤女","18090184"],["中袖冰丝针织衫女","135058"]]}
- 搜索建议自动智能提示 jQuery 插件 by 志文工作室
http://lzw.me/pages/demo/jquery_search_suggest_plugin/demo/
可调用 百度搜索建议、淘宝搜索建议 也可以自定义列表