mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
Regenerate snippet .md files
Run `./generate-md.py` to update generated markdown files after semi-manual changes made in the previous commit. This commit serves as a gist of fixed issues found in snippets. (it's easier to review 250 lines diff rather than 31k lines diff, isn't it?)
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@ client.CreateShardKey(
|
||||
"{collection_name}",
|
||||
&qdrant.CreateShardKey{
|
||||
ShardKey: qdrant.NewShardKey("default"),
|
||||
InitialState: qdrant.ReplicaState_PARTIAL,
|
||||
}
|
||||
InitialState: qdrant.PtrOf(qdrant.ReplicaState_Partial),
|
||||
},
|
||||
)
|
||||
```
|
||||
|
||||
+2
-1
@@ -6,6 +6,7 @@ import io.qdrant.client.QdrantGrpcClient;
|
||||
import io.qdrant.client.grpc.Collections.CreateShardKey;
|
||||
import io.qdrant.client.grpc.Collections.CreateShardKeyRequest;
|
||||
import io.qdrant.client.grpc.Collections.ReplicaState;
|
||||
import io.qdrant.client.grpc.Common.Filter;
|
||||
|
||||
QdrantClient client =
|
||||
new QdrantClient(QdrantGrpcClient.newBuilder("localhost", 6334, false).build());
|
||||
@@ -14,7 +15,7 @@ client.createShardKeyAsync(CreateShardKeyRequest.newBuilder()
|
||||
.setCollectionName("{collection_name}")
|
||||
.setRequest(CreateShardKey.newBuilder()
|
||||
.setShardKey(shardKey("default"))
|
||||
.setInitialState(ReplicaState.PARTIAL)
|
||||
.setInitialState(ReplicaState.Partial)
|
||||
.build())
|
||||
.build()).get();
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user