terms.md
2.18 KB
热门搜索和默认搜索
method=app.search.getTerms
请求参数
无
返回示例
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"defaultTerms": [
{
"content": "THETHING",
"id": 267,
"sort": 1,
"status": 2,
"type": 1,
"url": ""
}
],
"hotTerms": [
{
"content": "Into The Rainbow",
"id": 172,
"sort": 9,
"status": 2,
"type": 3,
"url": ""
},
{
"content": "FUN",
"id": 174,
"sort": 8,
"status": 2,
"type": 3,
"url": ""
},
{
"content": "COMBACK",
"id": 176,
"sort": 7,
"status": 2,
"type": 3,
"url": ""
},
{
"content": ":CHOCOOLATE",
"id": 178,
"sort": 6,
"status": 2,
"type": 3,
"url": ""
},
{
"content": "ABLE JEANS",
"id": 180,
"sort": 5,
"status": 2,
"type": 3,
"url": ""
}
]
},
"md5": "c21ba63edd38dc4d9b9a02a799d1edc0",
"message": "Terms List."
}
搜索词联想
method=app.search.fuzzy
请求参数
参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
---|---|---|---|---|---|
keyword | String | 否 | a | null | 联想关键词 |
返回示例
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"count": 216,
"keyword": "阿迪达斯"
},
{
"count": 216,
"keyword": "adidas"
},
{
"count": 10,
"keyword": "aape"
},
{
"count": 1,
"keyword": "aj"
},
{
"count": 21,
"keyword": "asics"
},
{
"count": 170,
"keyword": "adidasoriginals"
},
{
"count": 216,
"keyword": "阿迪"
},
{
"count": 1,
"keyword": "air jordan"
},
{
"count": 216,
"keyword": "air"
},
{
"count": 20,
"keyword": "安德玛"
}
],
"md5": "8e678e9334361efc4bd3820980d1060f",
"message": "fuzzy search list"
}