搜索词推荐

作者: playwolf719 | 来源:发表于2018-06-06 10:42 被阅读0次
    • 使用golang开发,借助字典树结构+堆的数据结构,实现了us级别的搜索前缀词和热门搜索词的获取。
    • 相关链接
      demo
      相关github
    • 返回样例
    {
        "NodeList": [{
            "Score": 326960,
            "Word": "奥迪"
        }, {
            "Score": 39557,
            "Word": "奥克斯"
        }, {
            "Score": 36172,
            "Word": "奥德赛"
        }, {
            "Score": 33267,
            "Word": "奥丁"
        }, {
            "Score": 11242,
            "Word": "奥斯卡"
        }, {
            "Score": 6406,
            "Word": "奥斯曼帝国"
        }, {
            "Score": 2308,
            "Word": "奥本海"
        }, {
            "Score": 1631,
            "Word": "奥斯曼"
        }, {
            "Score": 1561,
            "Word": "奥尼尔"
        }, {
            "Score": 1449,
            "Word": "奥斯汀"
        }, {
            "Score": 1343,
            "Word": "奥德赛"
        }, {
            "Score": 1259,
            "Word": "奥克斯汽车"
        }, {
            "Score": 1251,
            "Word": "奥列格"
        }, {
            "Score": 1195,
            "Word": "奥利弗"
        }, {
            "Score": 1185,
            "Word": "奥林匹克标志保护条例"
        }, {
            "Score": 1124,
            "Word": "奥德曼"
        }, {
            "Score": 625,
            "Word": "奥迪汽车公司"
        }, {
            "Score": 579,
            "Word": "奥尔布赖特"
        }, {
            "Score": 530,
            "Word": "奥托"
        }, {
            "Score": 1,
            "Word": "奥地利式烤牛肉扒"
        }],
        "ResList": [
            "奥丁",
            "奥克兰汽车公司",
            "奥克斯汽车",
            "奥布维",
            "奥德赛",
            "奥斯莫比尔",
            "奥杰汽车网",
            "奥迪勒芒",
            "奥迪汽车公司",
            "奥迪风洞中心",
            "奥东律师事务所",
            "奥井雅美",
            "奥亚波河兵鲶",
            "奥克塔维奥",
            "奥克股份",
            "奥列格",
            "奥利司他胶囊",
            "奥利弗温德尔霍姆斯",
            "奥利维拉",
            "奥勒留",
            "奥卡西平片",
            "奥卡诺根湖怪",
            "奥古斯丁",
            "奥古斯特",
            "奥古斯都",
            "奥古普古",
            "奥品顿鸡",
            "奥地利平斯澈犬",
            "奥地利平犬",
            "奥地利式烤牛肉扒",
            "奥地利普通民法典",
            "奥地利民法典",
            "奥地利翼龙",
            "奥地利黑褐猎犬",
            "奥地海鲶",
            "奥埃齿螯蛛",
            "奥夫拉娃笋螺",
            "奥妮",
            "奥姆杜父鱼",
            "奥威尔",
            "奥娣宝螺",
            "奥尔布赖特",
            "奥尔贾蒂芋螺",
            "奥尼尔",
            "奥弗涅指示犬",
            "奥弗涅指示猎犬",
            "奥德曼",
            "奥扎克圆吻鱥",
            "奥扎格雷钠",
            "奥托",
            "奥拉西坦注射液",
            "奥斯卡",
            "奥斯古德北极地松鼠",
            "奥斯塔欧洲螯虾",
            "奥斯曼帝国",
            "奥斯汀",
            "奥斯特洛夫斯基",
            "奥施康定",
            "奥普光电",
            "奥曲肽",
            "奥本海国际法",
            "奥杜邦长腿冠鹰",
            "奥林匹克标志保护条例",
            "奥林匹克知识产权保护文件汇编",
            "奥格门汀",
            "奥比岛珂裳凤蝶",
            "奥氏凹胸天牛",
            "奥氏更格卢鼠",
            "奥氏瓢鳍鰕虎鱼",
            "奥氏露斯塔脂鲤",
            "奥氮平片",
            "奥沙利文",
            "奥沙利铂注射液",
            "奥沙利铂甘露醇注射液",
            "奥沙西泮",
            "奥泊灰蝶属",
            "奥洛他定滴眼液",
            "奥特加诺德脂鲤",
            "奥狄思法则",
            "奥玛斯带状小刀鱼",
            "奥登堡马",
            "奥硝唑氯化钠注射液",
            "奥硝唑注射液",
            "奥科兰岛秧鸡",
            "奥粪金龟",
            "奥维兰",
            "奥维通信",
            "奥美拉唑肠溶片",
            "奥美拉唑肠溶胶囊",
            "奥美拉唑胶囊",
            "奥美拉唑镁肠溶片",
            "奥美沙坦酯",
            "奥芬刺叶珊瑚",
            "奥莫化石遗存",
            "奥蒂长吻副角鲀",
            "奥西那林",
            "奥达猎犬",
            "奥运卡",
            "奥酚达唑",
            "奥金莱克",
            "奥锹甲",
            "奥霍狮子鱼",
            "奥霍脱床杜父鱼",
            "奥顿蛙",
            "奥飞动漫",
            "奥黛丽"],
        "TimeDiff": "0.336745 ms",
        "TimeDiffFast": "0.002332 ms"
    }
    

    相关文章

      网友评论

        本文标题:搜索词推荐

        本文链接:https://www.haomeiwen.com/subject/axxbsftx.html