After updating document its creating new row rather than updating in same row
Doc_id|| EmpID || Name || Age || Salary || Salary credited || Active
xxxxx || 10001 || John || 30 || 20000 || - || -
xxxxx || 10002 || Peter || 29 || 23000 || - || -
SalaryCredited = 'Yes' and Active = 'Y'
SalaryCredited = 'No' and Active = 'N'
need to update Salary credited =yes and Active =Y in same row
mattkime
(Matthew Kime)
January 21, 2022, 3:35am
2
How did you attempt to send the update?
POST employee/_update/9JjTen4BEdR7uiPQF89g
{
"doc": {
"Salary credited" : "no",
"Active" : "no"
}}
i used this
mattkime
(Matthew Kime)
January 21, 2022, 4:25am
4
That is correct. Can you show me the results you're seeing including the _id field?
Thanks,
Matt
Yes that is correct i got that one from youtube
mattkime
(Matthew Kime)
January 21, 2022, 4:36am
6
Can you show me the documents you're seeing, including their _id field?
Thanks,
Matt
mattkime
(Matthew Kime)
January 21, 2022, 4:53am
8
thanks for the screenshot. What do you see if you run that update again? Maybe you can change something like the name just to see it reflected in the output.
mattkime
(Matthew Kime)
February 3, 2022, 2:32pm
13
Hello @Aniketvk008 - Are you still working on this? Have you made any progress? I was awaiting a response to my last question.
Thanks,
Matt
Hi @mattkime how to copy dashboard from kibana without overwriting the existing object(dashboard)
in same machine
mattkime
(Matthew Kime)
February 3, 2022, 3:41pm
15
Which version of the elastic stack are you running?
There's a 'save as' option near the top of the screen which will prompt you for a new name for a duplicate copy of the dashboard.
system
(system)
Closed
March 3, 2022, 3:41pm
16
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.