I have to migrate our web application's Elasticsearch Database to a Postgresql Database. The web application is in AngularJS and the backend is in Nodejs. Our application interacts with our Elasticsearch Database and uses restful API standard HTTP requests. I want to migrate from Elasticsearch Database to a Postgresql Database.
How can I and what steps can I go about to do this migration as efficiently and easily as possible with no loss in data during migration?