Index Operation Update and delete existing records in elastic search

(Vikrant Trivedi) #1

I have used this way to creating index and fetching data from it.
index: 'check',
id: '1',
type: 'test',
body: {
"bussiness_id": i,
"name": 'Vikrant',
"city": address[0].city,

            }, function (err, resp, status) {
                if (err) {
                } else {

But i am not able to update and delete this existing record. Please help me out for the same, its bit urgent. Thanks

(Magnus B├Ąck) #2

Please edit your post and move it to the Elasticsearch category. It doesn't belong in Elastic User Groups.

(David Pilato) #3

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Update is like an index operation. Just send again the same request and you're done.
Delete. What did you try so far?

(system) closed #4