Skip to content

Commit 66f0560

Browse files
Anush008bashofmann
andauthored
feat: Migrate From OpenSearch (#77)
* feat: Migrate From Opensearch Signed-off-by: Anush008 <anushshetty90@gmail.com> * chore: Review updates Signed-off-by: Anush008 <anushshetty90@gmail.com> * Update README.md Co-authored-by: Bastian Hofmann <mail@bastianhofmann.de> * chore: Rename var to qdrantGRPCPort Signed-off-by: Anush008 <anushshetty90@gmail.com> --------- Signed-off-by: Anush008 <anushshetty90@gmail.com> Co-authored-by: Bastian Hofmann <mail@bastianhofmann.de>
1 parent 192095c commit 66f0560

14 files changed

+690
-15
lines changed

README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ CLI tool for migrating data to [Qdrant](http://qdrant.tech) with support for res
1313
* Weaviate
1414
* Redis
1515
* MongoDB
16+
* OpenSearch
1617
* Another Qdrant instance
1718

1819
## Installation
@@ -289,7 +290,7 @@ Migrate data from a **MongoDB** database to **Qdrant**:
289290

290291
```bash
291292
docker run --net=host --rm -it registry.cloud.qdrant.io/library/qdrant-migration mongodb \
292-
--mongodb.url 'mongodb+srv://<username>:<password>@<cluster-url>/myDatabase' \
293+
--mongodb.url 'mongodb+srv://<username>:<password>@<cluster-url>/mydb' \
293294
--mongodb.database 'mydb' \
294295
--mongodb.collection 'mycollection' \
295296
--qdrant.url 'http://localhost:6334' \
@@ -318,6 +319,49 @@ See [Shared Migration Options](#shared-migration-options) for common migration p
318319

319320
</details>
320321

322+
<details>
323+
<summary><h3>From OpenSearch</h3></summary>
324+
325+
Migrate data from an **OpenSearch** index to **Qdrant**:
326+
327+
### 📥 Example
328+
329+
```bash
330+
docker run --net=host --rm -it registry.cloud.qdrant.io/library/qdrant-migration opensearch \
331+
--opensearch.url 'https://localhost:9200' \
332+
--opensearch.insecure-skip-verify \
333+
--opensearch.index 'source-index' \
334+
--opensearch.username 'username' \
335+
--opensearch.password 'password' \
336+
--qdrant.url 'http://localhost:6334' \
337+
--qdrant.api-key 'optional-qdrant-api-key' \
338+
--qdrant.collection 'target-collection' \
339+
--migration.batch-size 64
340+
```
341+
342+
#### OpenSearch Options
343+
344+
| Flag | Description |
345+
| ----------------------------------- | ------------------------------------------------------ |
346+
| `--opensearch.url` | OpenSearch URL (e.g. `http://localhost:9200`). |
347+
| `--opensearch.index` | OpenSearch index name. |
348+
| `--opensearch.username` | Username for basic authentication (optional) |
349+
| `--opensearch.password` | Password for basic authentication (optional) |
350+
| `--opensearch.insecure-skip-verify` | Whether to skip TLS certificate verification (optional) |
351+
352+
#### Qdrant Options
353+
354+
| Flag | Description |
355+
| --------------------- | ----------------------------------------------------------- |
356+
| `--qdrant.url` | Qdrant gRPC URL. Default: `"http://localhost:6334"` |
357+
| `--qdrant.collection` | Target collection name |
358+
| `--qdrant.api-key` | Qdrant API key (optional) |
359+
| `--qdrant.id-field` | Field storing OpenSearch IDs in Qdrant. Default: `"__id__"` |
360+
361+
See [Shared Migration Options](#shared-migration-options) for common migration parameters.
362+
363+
</details>
364+
321365
<details>
322366
<summary><h3>From Another Qdrant Instance</h3></summary>
323367

0 commit comments

Comments
 (0)