modify API.md

This commit is contained in:
shzhulin3 2021-04-09 13:55:06 +08:00
parent fb6b12a587
commit 15c59a41f5

View File

@ -43,9 +43,17 @@ curl 'http://127.0.0.1/index/search?page_index=0&key=京东&appid=10001'
### 成功返回示例 ### 成功返回示例
```json ```json
{ {
"code": 0, "code": 0,
"count": 10, "count": 2,
"result": [7976,12984,11705,2572,239,474,343,290,10086,318] "result": [{
"doc_id": "115",
"score": 20.395478565398534,
},
{
"doc_id": "105",
"score": 20.016650933441753,
}
]
} }
``` ```
### 错误返回示例 ### 错误返回示例