I have used this way to creating index and fetching data from it.
client.index({
index: 'check',
id: '1',
type: 'test',
body: {
"bussiness_id": i,
"name": 'Vikrant',
"city": address[0].city,
}
}, function (err, resp, status) {
if (err) {
console.log(err);
} else {
console.log(res+'****'+status);
}
});
But i am not able to update and delete this existing record. Please help me out for the same, its bit urgent. Thanks