mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-05 10:58:32 +02:00
correct spelling from shapshot to snapshot in the documentation
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
```http
|
```http
|
||||||
PUT /collections/{collection_name}/snapshots/recover
|
PUT /collections/{collection_name}/snapshots/recover
|
||||||
{
|
{
|
||||||
"location": "http://qdrant-node-1:6333/collections/{collection_name}/snapshots/snapshot-2022-10-10.shapshot"
|
"location": "http://qdrant-node-1:6333/collections/{collection_name}/snapshots/snapshot-2022-10-10.snapshot"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -5,6 +5,6 @@ client = QdrantClient(url="http://qdrant-node-2:6333")
|
|||||||
|
|
||||||
client.recover_snapshot(
|
client.recover_snapshot(
|
||||||
"{collection_name}",
|
"{collection_name}",
|
||||||
"http://qdrant-node-1:6333/collections/collection_name/snapshots/snapshot-2022-10-10.shapshot",
|
"http://qdrant-node-1:6333/collections/collection_name/snapshots/snapshot-2022-10-10.snapshot",
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -4,6 +4,6 @@ import { QdrantClient } from "@qdrant/js-client-rest";
|
|||||||
const client = new QdrantClient({ host: "localhost", port: 6333 });
|
const client = new QdrantClient({ host: "localhost", port: 6333 });
|
||||||
|
|
||||||
client.recoverSnapshot("{collection_name}", {
|
client.recoverSnapshot("{collection_name}", {
|
||||||
location: "http://qdrant-node-1:6333/collections/{collection_name}/snapshots/snapshot-2022-10-10.shapshot",
|
location: "http://qdrant-node-1:6333/collections/{collection_name}/snapshots/snapshot-2022-10-10.snapshot",
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -2,5 +2,5 @@
|
|||||||
curl -X POST 'http://qdrant-node-1:6333/collections/{collection_name}/snapshots/upload?priority=snapshot' \
|
curl -X POST 'http://qdrant-node-1:6333/collections/{collection_name}/snapshots/upload?priority=snapshot' \
|
||||||
-H 'api-key: ********' \
|
-H 'api-key: ********' \
|
||||||
-H 'Content-Type:multipart/form-data' \
|
-H 'Content-Type:multipart/form-data' \
|
||||||
-F 'snapshot=@/path/to/snapshot-2022-10-10.shapshot'
|
-F 'snapshot=@/path/to/snapshot-2022-10-10.snapshot'
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
```http
|
```http
|
||||||
PUT /collections/{collection_name}/snapshots/recover
|
PUT /collections/{collection_name}/snapshots/recover
|
||||||
{
|
{
|
||||||
"location": "http://qdrant-node-1:6333/collections/{collection_name}/snapshots/snapshot-2022-10-10.shapshot",
|
"location": "http://qdrant-node-1:6333/collections/{collection_name}/snapshots/snapshot-2022-10-10.snapshot",
|
||||||
"priority": "snapshot"
|
"priority": "snapshot"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ client = QdrantClient(url="http://qdrant-node-2:6333")
|
|||||||
|
|
||||||
client.recover_snapshot(
|
client.recover_snapshot(
|
||||||
"{collection_name}",
|
"{collection_name}",
|
||||||
"http://qdrant-node-1:6333/collections/{collection_name}/snapshots/snapshot-2022-10-10.shapshot",
|
"http://qdrant-node-1:6333/collections/{collection_name}/snapshots/snapshot-2022-10-10.snapshot",
|
||||||
priority=models.SnapshotPriority.SNAPSHOT,
|
priority=models.SnapshotPriority.SNAPSHOT,
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import { QdrantClient } from "@qdrant/js-client-rest";
|
|||||||
const client = new QdrantClient({ host: "localhost", port: 6333 });
|
const client = new QdrantClient({ host: "localhost", port: 6333 });
|
||||||
|
|
||||||
client.recoverSnapshot("{collection_name}", {
|
client.recoverSnapshot("{collection_name}", {
|
||||||
location: "http://qdrant-node-1:6333/collections/{collection_name}/snapshots/snapshot-2022-10-10.shapshot",
|
location: "http://qdrant-node-1:6333/collections/{collection_name}/snapshots/snapshot-2022-10-10.snapshot",
|
||||||
priority: "snapshot"
|
priority: "snapshot"
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user