I want to update records in ElasticSearch by query. For this purpose I used
UpdateByQuery plugin, but I can't figure out
how to force it to work properly. Here my updateByQuery:
{
"query": {
"term": {
"patix_id": "87344"
}
},
"script": "ctx._source.firstName = "TEST""
}
For it I get this response:
{
ok: true
took: 30
total: 1
updated: 0
indices: [
{
reception: { }
}
]
}
I don't know why this query is not updating anything (updated: 0)
although it can find the target row (total: 1).
What I'm doing wrong? The updated record ("patix_id": "87344") surely
exists in ElasticSearch index (reception).
I use 'ElasticSearch 1.3.2' and
'com.yakaz.elasticsearch.plugins/elasticsearch-action-updatebyquery/2.2.0'.
Peter
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e4596ee3-6602-4abb-8733-a6cbafa22e27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.