Skip to content

Commit a5b3701

Browse files
committed
Merge branch 'main' of github.com:stac-utils/stac-fastapi-elasticsearch into unique_asset_names
2 parents 874dc3d + 8974c38 commit a5b3701

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

scripts/reindex_elasticsearch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ async def reindex():
2020
await client.options(ignore_status=400).indices.create(index=new_index)
2121

2222
reindex_resp = await client.reindex(
23-
dest={"index": new_index}, source={"index": [index]}, wait_for_completion=False
23+
dest={"index": new_index},
24+
source={"index": [index]},
25+
wait_for_completion=False,
2426
)
2527

2628
task_id = reindex_resp["task"]

scripts/reindex_opensearch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ async def reindex():
2020
await client.options(ignore_status=400).indices.create(index=new_index)
2121

2222
reindex_resp = await client.reindex(
23-
dest={"index": new_index}, source={"index": [index]}, wait_for_completion=False
23+
dest={"index": new_index},
24+
source={"index": [index]},
25+
wait_for_completion=False,
2426
)
2527

2628
task_id = reindex_resp["task"]

0 commit comments

Comments
 (0)