@zilliz/milvus2-sdk-node 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -6
- package/dist/milvus/types.d.ts +1 -1
- package/dist/sdk.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,6 +7,14 @@
|
|
|
7
7
|
|
|
8
8
|
This is node sdk for [Milvus](https://github.com/milvus-io/milvus).
|
|
9
9
|
|
|
10
|
+
## Compatibility
|
|
11
|
+
|
|
12
|
+
The following collection shows Milvus versions and recommended @zilliz/milvus2-sdk-node versions:
|
|
13
|
+
|
|
14
|
+
| Milvus version | Recommended @zilliz/milvus2-sdk-node version |
|
|
15
|
+
| :------------: | :------------------------------------------: |
|
|
16
|
+
| 2.0.0 | 2.0.0 |
|
|
17
|
+
|
|
10
18
|
## Dependencies
|
|
11
19
|
|
|
12
20
|
Milvus: v2+
|
|
@@ -19,7 +27,7 @@ Node: v12+
|
|
|
19
27
|
npm install @zilliz/milvus2-sdk-node
|
|
20
28
|
```
|
|
21
29
|
|
|
22
|
-
## API
|
|
30
|
+
## API Support
|
|
23
31
|
|
|
24
32
|
| Name | Async | Description |
|
|
25
33
|
| :---------------------- | :---- | :--------------------------------------: |
|
|
@@ -45,12 +53,16 @@ Node: v12+
|
|
|
45
53
|
| dropIndex | true | Drop index |
|
|
46
54
|
| insert | false | Insert data into milvus |
|
|
47
55
|
| search | false | Vector similarity search |
|
|
48
|
-
| flush |
|
|
56
|
+
| flush | true | Flush Data |
|
|
57
|
+
| flushSync | false | Flush Data Sync |
|
|
49
58
|
| query | false | Get data by expr |
|
|
59
|
+
| compact | true | Do compaction for the collection |
|
|
60
|
+
| getCompactionState | true | Get compaction states by compact id |
|
|
50
61
|
|
|
51
62
|
## Example
|
|
52
63
|
|
|
53
|
-
1. [
|
|
54
|
-
2. [How to
|
|
55
|
-
3. [
|
|
56
|
-
4. [Vector similarity search on
|
|
64
|
+
1. [Hello World](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/HelloMilvus.ts)
|
|
65
|
+
2. [How to operate collection](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Collection.ts)
|
|
66
|
+
3. [How to insert data](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Insert.ts)
|
|
67
|
+
4. [Vector similarity search on float field](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Search.ts)
|
|
68
|
+
5. [Vector similarity search on binary field](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/BinarySearch.ts)
|
package/dist/milvus/types.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export type { InsertReq, FieldData, FlushReq, CalcDistanceReq, GetFlushStateReq,
|
|
|
3
3
|
export type { IndexState, IndexType, MetricType, MsgBase, MsgType, DataType, DslType, } from "./types/Common";
|
|
4
4
|
export type { GetIndexBuildProgressReq, DropIndexReq, GetIndexStateReq, CreateIndexReq, CreateIndexParam, DescribeIndexReq, } from "./types/Index";
|
|
5
5
|
export type { GetPartitionStatisticsReq, ReleasePartitionsReq, CreatePartitionReq, ShowPartitionsReq, LoadPartitionsReq, DropPartitionReq, HasPartitionReq, } from "./types/Partition";
|
|
6
|
-
export type { ResStatus, ErrorCode, BoolResponse, GetIndexBuildProgressResponse, DescribeCollectionResponse, ShowCollectionsResponse, ShowPartitionsResponse, GetIndexStateResponse, DescribeIndexResponse, StatisticsResponse, MutationResult, SearchResults, SearchResultData, CollectionSchema, FieldSchema, IndexDescription, FlushResult, QueryResults, CollectionData, GetMetricsResponse, CalcDistanceResponse, GetFlushStateResponse, GetQuerySegmentInfoResponse, } from "./types/Response";
|
|
6
|
+
export type { ResStatus, ErrorCode, BoolResponse, GetIndexBuildProgressResponse, DescribeCollectionResponse, ShowCollectionsResponse, ShowPartitionsResponse, GetIndexStateResponse, DescribeIndexResponse, StatisticsResponse, MutationResult, SearchResults, SearchResultData, CollectionSchema, FieldSchema, IndexDescription, FlushResult, QueryResults, CollectionData, GetMetricsResponse, CalcDistanceResponse, GetFlushStateResponse, GetQuerySegmentInfoResponse, GetCompactionStateResponse, GetCompactionPlansResponse, CompactionResponse, } from "./types/Response";
|
|
7
7
|
export type { SearchRes, SearchReq, SearchParam, GetMetricsRequest, } from "./types/Search";
|
package/dist/sdk.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"2.0.0","milvusVersion":"v2.0.0"}
|