I have used this way to creating index and fetching data from it.
router.get('/create', function (req, res, next) {
client.index({
index: 'check',
id: '1',
type: 'test',
body: {
"user_id": 1,
"name": 'Vikrant Trivedi',
}
}, function (err, resp, status) {
console.log(resp);
});
});
But i am not able to update and delete this existing record. Please help me out for the same, its bit urgent. Thanks