@@ -620,7 +621,9 @@ Updates the index type and nlist of a collection.
...
@@ -620,7 +621,9 @@ Updates the index type and nlist of a collection.
<tr><td>Body</td><td><pre><code>
<tr><td>Body</td><td><pre><code>
{
{
"index_type": string,
"index_type": string,
"nlist": integer($int64)
"params": {
......
}
}
}
</code></pre></td></tr>
</code></pre></td></tr>
<tr><td>Method</td><td>POST</td></tr>
<tr><td>Method</td><td>POST</td></tr>
...
@@ -632,7 +635,7 @@ Updates the index type and nlist of a collection.
...
@@ -632,7 +635,7 @@ Updates the index type and nlist of a collection.
| Parameter | Description | Required? |
| Parameter | Description | Required? |
|-----------------|---|------|
|-----------------|---|------|
| `index_type` | The type of indexing method to query the collection. Please refer to [Index Types](https://www.milvus.io/docs/reference/index.md) for detailed introduction of supported indexes. The default is "FLAT". | No |
| `index_type` | The type of indexing method to query the collection. Please refer to [Index Types](https://www.milvus.io/docs/reference/index.md) for detailed introduction of supported indexes. The default is "FLAT". | No |
| `nlist` | Number of vector buckets in a file. The default is 16384. | No |
| `params` | The extra params of indexing method to query the collection. Please refer to [Index Types](https://www.milvus.io/docs/reference/index.md) for detailed introduction of supported indexes. The default is "FLAT". | No |
##### Query Parameters
##### Query Parameters
...
@@ -990,8 +993,8 @@ $ curl -X GET "http://192.168.1.65:19121/collections/test_collection/segments/15
...
@@ -990,8 +993,8 @@ $ curl -X GET "http://192.168.1.65:19121/collections/test_collection/segments/15
"count":2,
"count":2,
"vectors":[
"vectors":[
{
{
"vector":[],
"vector":[0.1],
"id":""
"id":"1583727470435045000"
}
}
]
]
}
}
...
@@ -1039,8 +1042,8 @@ $ curl -X GET "http://192.168.1.65:19121/collections/test_collection/segments/15
...
@@ -1039,8 +1042,8 @@ $ curl -X GET "http://192.168.1.65:19121/collections/test_collection/segments/15
```json
```json
{
{
"ids":[],
"ids":["1583727470435045000"],
"count":0
"count":10000
}
}
```
```
...
@@ -1059,7 +1062,7 @@ $ curl -X GET "http://192.168.1.65:19121/collections/test_collection/segments/15
...
@@ -1059,7 +1062,7 @@ $ curl -X GET "http://192.168.1.65:19121/collections/test_collection/segments/15
{
{
"search": {
"search": {
"topk": integer($int64),
"topk": integer($int64),
"tags": [string],
"partition_tags": [string],
"file_ids": [string],
"file_ids": [string],
"vectors": [[number($float/$uint8)]]
"vectors": [[number($float/$uint8)]]
"params": {
"params": {
...
@@ -1078,8 +1081,8 @@ $ curl -X GET "http://192.168.1.65:19121/collections/test_collection/segments/15
...
@@ -1078,8 +1081,8 @@ $ curl -X GET "http://192.168.1.65:19121/collections/test_collection/segments/15
| `topk` | The top k most similar results of each query vector. | Yes |
| `topk` | The top k most similar results of each query vector. | Yes |
| `tags` | Tags of partitions that you need to search. You do not have to specify this value if the collection is not partitioned or you wish to search the whole collection. | No |
| `tags` | Tags of partitions that you need to search. You do not have to specify this value if the collection is not partitioned or you wish to search the whole collection. | No |
| `file_ids` | IDs of the vector files. You do not have to specify this value if you do not use Milvus in distributed scenarios. Also, if you assign a value to `file_ids`, the value of `tags` is ignored. | No |
| `file_ids` | IDs of the vector files. You do not have to specify this value if you do not use Milvus in distributed scenarios. Also, if you assign a value to `file_ids`, the value of `tags` is ignored. | No |
| `records` | Numeric vectors to insert to the collection. | Yes |
| `vectors` | Vectors to query. | Yes |
| `records_bin` | Binary vectors to insert to the collection. | Yes |
| `params` | Extra params for search. | Yes |
> Note: Type of items of vectors depends on the metric used by the collection. If the collection uses `L2` or `IP`, you must use `float`. If the collection uses `HAMMING`, `JACCARD`, or `TANIMOTO`, you must use `uint8`.
> Note: Type of items of vectors depends on the metric used by the collection. If the collection uses `L2` or `IP`, you must use `float`. If the collection uses `HAMMING`, `JACCARD`, or `TANIMOTO`, you must use `uint8`.
...
@@ -1225,6 +1228,57 @@ $ curl -X POST "http://192.168.1.65:19121/collections/test_collection/vectors" -
...
@@ -1225,6 +1228,57 @@ $ curl -X POST "http://192.168.1.65:19121/collections/test_collection/vectors" -