mongoosastic update index
MovieSchema.findOneAndUpdate(query, reqObject, {
upsert: true,'new': true
}, function(err, results) {
if (err) {
console.log(err)
return;
} else {
console.log("Data updated in ElasticSearch & MongoDB")
console.log(results)
}
});