I need to add a flag with value 2 where the "codigoTema" = 2
The truth is, I'm new to elasticsearch. I would appreciate your help.
I attach my current code. Maybe this is bad because I'm new to this
thank you very much
POST /lecordonbleu_des/documentos/_update_by_query
{
"script": "ctx._source.flag = 2",
"query": {
"query_string" : {
"fields" : ["codigoTema"],
"query" : "2"
}
}
}