'How to bulk insert existing data into Elasticsearch db without duplication in node.js?
Our tech stack is simply Nest.js + Postgresql + Elasticsearch.
I've been searching around to figure out a solution for bulk indexing existing data into Elasticsearch db.
What I'm going to accomplish is just a script that re-indexes all the data in the postgresql db into Elasticsearch db even without duplications, just like when you run db migration in Typeorm or something like that(you probably run migrations whenever deploying new versions to the production env).
However, I couldn't find out a relavant solution on the internet yet.
Hopefully someone with similiar experience can help me, would be appreciated!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
