Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
860cc97a
M
milvus
项目概览
milvus
/
milvus
大约 1 年 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
860cc97a
编写于
5月 14, 2020
作者:
B
BossZou
提交者:
GitHub
5月 14, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[skip ci] Update http document for v0.9.0 (#2347) (#2348)
Signed-off-by:
N
yhz
<
413554850@qq.com
>
上级
3c46b22d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
36 addition
and
30 deletion
+36
-30
CHANGELOG.md
CHANGELOG.md
+1
-0
core/src/server/web_impl/README.md
core/src/server/web_impl/README.md
+35
-30
未找到文件。
CHANGELOG.md
浏览文件 @
860cc97a
...
...
@@ -66,6 +66,7 @@ Please mark all change in change log and use the issue from GitHub
-
\#
2300 Upgrade mishrads configuration to version 0.4
-
\#
2311 Update mishards methods
-
\#
2330 Change url for behavior 'get_entities_by_id'
-
\#
2347 Update http document for v0.9.0
## Task
...
...
core/src/server/web_impl/README.md
浏览文件 @
860cc97a
...
...
@@ -540,22 +540,23 @@ $ curl -X GET "http://127.0.0.1:19121/collections/test_collection?info=stat" -H
```
json
{
"count"
:
150000
,
"partitions_stat"
:
[
"partitions"
:[
{
"count"
:
1000
,
"partition_tag"
:
"_default"
,
"segments_stat"
:
[
"row_count"
:
10000
,
"segments"
:[
{
"
count"
:
1000
,
"index
"
:
"
FLAT"
,
"
segment_name"
:
"1583727170217439
000"
,
"
size"
:
5284922
"
data_size"
:
5284922
,
"index
_name"
:
"IVF
FLAT"
,
"
name"
:
"1589468453228582
000"
,
"
row_count"
:
10000
}
]
],
"tag"
:
"_default"
}
]
],
"row_count"
:
10000
}
```
### `/collections/{collection_name}` (DELETE)
...
...
@@ -935,7 +936,7 @@ Deletes a partition by tag.
##### Request
```
shell
$
curl
-X
DELETE
"http://127.0.0.1:19121/collections/test_collection/partitions -H "
accept: application/json
" -d "
{
\"
partition_tag
\"
:
\"
tags_01
\"
}
"
$
curl
-X
DELETE
"http://127.0.0.1:19121/collections/test_collection/partitions
"
-H
"accept: application/json"
-d
"{
\"
partition_tag
\"
:
\"
tags_01
\"
}"
```
The deletion is successful if no information is returned.
...
...
@@ -981,16 +982,16 @@ $ curl -X GET "http://127.0.0.1:19121/collections/test_collection/segments?offse
```
json
{
"code"
:
0
,
"message"
:
"OK"
,
"count"
:
2
,
"segments"
:
[
"code"
:
0
,
"message"
:
"OK"
,
"count"
:
1
,
"segments"
:[
{
"
count"
:
10000
,
"index
"
:
"IVFFLAT"
,
"
partition_tag"
:
"_default
"
,
"
segment_name"
:
"1583727470444700000
"
,
"
size"
:
5284922
"
data_size"
:
5284922
,
"index
_name"
:
"IVFFLAT"
,
"
name"
:
"1589468453228582000
"
,
"
partition_tag"
:
"_default
"
,
"
row_count"
:
10000
}
]
}
...
...
@@ -1237,9 +1238,9 @@ Inserts vectors to a collection.
<tr><td>
Header
</td><td><pre><code>
accept: application/json
</code></pre>
</td></tr>
<tr><td>
Body
</td><td><pre><code>
{
"partition_tag": string,
"partition_tag":
$
string,
"vectors": [[number($float/$uint8)]],
"ids": [
integer($int64)
]
"ids": [
$string
]
}
</code></pre>
</td></tr>
<tr><td>
Method
</td><td>
POST
</td></tr>
...
...
@@ -1290,9 +1291,9 @@ $ curl -X POST "http://127.0.0.1:19121/collections/test_collection/vectors" -H "
}
```
### `/collections/{collection_name}/vectors?id
={vector_id
}` (GET)
### `/collections/{collection_name}/vectors?id
s={vector_id_list
}` (GET)
Obtain
a vector to
by ID.
Obtain
vectors
by ID.
#### Request
...
...
@@ -1305,10 +1306,10 @@ Obtain a vector to by ID.
#### Query Parameters
| Parameter | Description | Required? |
| ----------------- | ----------------------- | --------- |
|
`collection_name`
| Name of the collection. | Yes |
|
`vector_id
`
| Vector id.
| Yes |
| Parameter | Description
| Required? |
| ----------------- | -----------------------
--------------
| --------- |
|
`collection_name`
| Name of the collection.
| Yes |
|
`vector_id
_list`
| Vector id list, separated by commas.
| Yes |
#### Response
...
...
@@ -1323,7 +1324,7 @@ Obtain a vector to by ID.
##### Request
```
shell
$
curl
-X
GET
"http://127.0.0.1:19121/collections/test_collection/vectors?id
=1578989029645098000
"
-H
"accept: application/json"
-H
"Content-Type: application/json"
$
curl
-X
GET
"http://127.0.0.1:19121/collections/test_collection/vectors?id
s=1578989029645098000,1578989029645098001
"
-H
"accept: application/json"
-H
"Content-Type: application/json"
```
##### Response
...
...
@@ -1334,6 +1335,10 @@ $ curl -X GET "http://127.0.0.1:19121/collections/test_collection/vectors?id=157
{
"id"
:
"1578989029645098000"
,
"vector"
:
[
0.1
]
},
{
"id"
:
"1578989029645098001"
,
"vector"
:
[
0.2
]
}
]
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录