Skip to content

Commit

Permalink
chore: update sync-orama-cloud.mjs
Browse files Browse the repository at this point in the history
Signed-off-by: tquocanvn <[email protected]>
  • Loading branch information
tquocanvn authored May 14, 2024
1 parent 0578ef4 commit d566dbe
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/orama-search/sync-orama-cloud.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const insertBatch = async batch => {
headers: oramaHeaders,
body: JSON.stringify({ upsert: batch }),
});
console.log('Insert done');
}

// We call the "deploy" API to trigger a deployment of the index, which will process all the documents in the queue.
Expand Down Expand Up @@ -67,9 +66,6 @@ const emptyOramaIndex = async () =>
// Once all these steps are done, the new documents will be available in the live index.
// Allow Orama up to 1 minute to distribute the documents to all the 300+ nodes worldwide.
console.log(INDEX_ID);
console.log('Empty');
await emptyOramaIndex();
console.log('Update');
await runUpdate();
console.log('Deploy');
await triggerDeployment();

0 comments on commit d566dbe

Please sign in to comment.