Hi,
I want to update a particular field in the index. Index contains 100 docs.
I want to update field "name" with "condition_system" in every doc where "Condition System" is present.
GET part_ther/_search
{
"_index" : "part_ther",
"_type" : "_doc",
"_id" : "1",
"_score" : 1.0,
"_source" : {
"LMK" : 42.6,
"Num" : 364482,
"id" : 1849,
"name" : "Condition System ",
"Number" : "G1",
I got update method but it's updating single doc per request. Can I update field "name" in all docs in single request.
POST part_ther/_update/1
{
"doc": {
"LMK" : 42.6,
"Num" : 364482,
"id" : 1849,
"name" : "condition_system",
"Number" : "G1",
}
}