I'm fairly new to Elasticsearch so apologies if I am missing something elementary. I am trying to update a field within documents in my index.
POST test_index/_update_by_query
{
"query": {
"match": {
"label": {
"query": " checked",
"type": "phrase"
}
}
},
"script": "ctx._source.status = 'ok'"
}
Looks like it's finding the documents, just doesn't update them. Here is the output in marvel
{
"ok": true,
"took": 7531,
"total": 230954,
"updated": 0,
"indices": [
{
"test_index": {}
}
]
}
I've installed the plugin at https://github.com/yakaz/elasticsearch-action-updatebyquery as recommended. Any help would be most appreciated. Thanks in advance -