mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-04 10:28:29 +02:00
docs: Updated java.md
Signed-off-by: Anush008 <anushshetty90@gmail.com>
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ using Qdrant.Client.Grpc;
|
||||
var client = new QdrantClient("localhost", 6334);
|
||||
|
||||
await client.UpdateCollectionAsync(
|
||||
collectionName: "my_collection",
|
||||
collectionName: {collection_name}",
|
||||
quantizationConfig: new QuantizationConfigDiff { Disabled = new Disabled() }
|
||||
);
|
||||
```
|
||||
|
||||
+4
-1
@@ -1,4 +1,5 @@
|
||||
```java
|
||||
import io.qdrant.client.grpc.Collections.Disabled;
|
||||
import io.qdrant.client.grpc.Collections.QuantizationConfigDiff;
|
||||
import io.qdrant.client.grpc.Collections.UpdateCollection;
|
||||
|
||||
@@ -6,6 +7,8 @@ client.updateCollectionAsync(
|
||||
UpdateCollection.newBuilder()
|
||||
.setCollectionName("{collection_name}")
|
||||
.setQuantizationConfig(
|
||||
QuantizationConfigDiff.newBuilder().disabled().build()) // WRONG
|
||||
QuantizationConfigDiff.newBuilder()
|
||||
.setDisabled(Disabled.getDefaultInstance())
|
||||
.build())
|
||||
.build());
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user