Skip to content

Commit

Permalink
Update v1.7.0 - implementation (#81)
Browse files Browse the repository at this point in the history
* Add create and delete shard key functions

* Use more direct shard key types

* Add discovery functions

* Conversions from borrowed types into sparse vectors

* Add shard key selector parameter to all relevant API functions

* Move shard key selector parameter adjacent collection name parameter

* Update documentation example

* Add conversion helpers for shard key selector

* sync proto

* proto changes

* fix readme

---------

Co-authored-by: generall <[email protected]>
  • Loading branch information
timvisee and generall authored Dec 7, 2023
1 parent 9462cc9 commit 762703f
Show file tree
Hide file tree
Showing 6 changed files with 361 additions and 75 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async fn main() -> Result<()> {

let points = vec![PointStruct::new(0, vec![12.; 10], payload)];
client
.upsert_points_blocking(collection_name, points, None)
.upsert_points_blocking(collection_name, None, points, None)
.await?;

let search_result = client
Expand Down
2 changes: 1 addition & 1 deletion examples/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async fn main() -> Result<()> {

let points = vec![PointStruct::new(0, vec![12.; 10], payload)];
client
.upsert_points_blocking(collection_name, points, None)
.upsert_points_blocking(collection_name, None, points, None)
.await?;

let search_result = client
Expand Down
6 changes: 3 additions & 3 deletions proto/collections.proto
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,14 @@ message PayloadSchemaInfo {
message CollectionInfo {
CollectionStatus status = 1; // operating condition of the collection
OptimizerStatus optimizer_status = 2; // status of collection optimizers
uint64 vectors_count = 3; // number of vectors in the collection
optional uint64 vectors_count = 3; // Approximate number of vectors in the collection
uint64 segments_count = 4; // Number of independent segments
reserved 5; // Deprecated
reserved 6; // Deprecated
CollectionConfig config = 7; // Configuration
map<string, PayloadSchemaInfo> payload_schema = 8; // Collection data types
uint64 points_count = 9; // number of points in the collection
optional uint64 indexed_vectors_count = 10; // number of indexed vectors in the collection.
optional uint64 points_count = 9; // Approximate number of points in the collection
optional uint64 indexed_vectors_count = 10; // Approximate number of indexed vectors in the collection.
}

message ChangeAliases {
Expand Down
Loading

0 comments on commit 762703f

Please sign in to comment.