From 15c59a41f5787758407f7aeca44c34213f0eaec3 Mon Sep 17 00:00:00 2001 From: shzhulin3 Date: Fri, 9 Apr 2021 13:55:06 +0800 Subject: [PATCH] modify API.md --- docs/API.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/API.md b/docs/API.md index 040ff42..8d13a6f 100644 --- a/docs/API.md +++ b/docs/API.md @@ -43,9 +43,17 @@ curl 'http://127.0.0.1/index/search?page_index=0&key=京东&appid=10001' ### 成功返回示例 ```json { - "code": 0, - "count": 10, - "result": [7976,12984,11705,2572,239,474,343,290,10086,318] + "code": 0, + "count": 2, + "result": [{ + "doc_id": "115", + "score": 20.395478565398534, + }, + { + "doc_id": "105", + "score": 20.016650933441753, + } + ] } ``` ### 错误返回示例