Index Operations Update and delete existing records in elastic search

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

I am not sure I understand what the problem is. Please explain in greater detail.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.