{"action":"created","issue":{"url":"https://api.github.com/repos/yakaz/elasticsearch-action-updatebyquery/issues/49","repository_url":"https://api.github.com/repos/yakaz/elasticsearch-action-updatebyquery","labels_url":"https://api.github.com/repos/yakaz/elasticsearch-action-updatebyquery/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/yakaz/elasticsearch-action-updatebyquery/issues/49/comments","events_url":"https://api.github.com/repos/yakaz/elasticsearch-action-updatebyquery/issues/49/events","html_url":"https://github.com/yakaz/elasticsearch-action-updatebyquery/issues/49","id":163210096,"number":49,"title":"Elasticsearch [1.5.2] update_by_query plugin doesn't work as expected","user":{"login":"manumr","id":1091470,"avatar_url":"https://avatars.githubusercontent.com/u/1091470?v=3","gravatar_id":"","url":"https://api.github.com/users/manumr","html_url":"https://github.com/manumr","followers_url":"https://api.github.com/users/manumr/followers","following_url":"https://api.github.com/users/manumr/following{/other_user}","gists_url":"https://api.github.com/users/manumr/gists{/gist_id}","starred_url":"https://api.github.com/users/manumr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manumr/subscriptions","organizations_url":"https://api.github.com/users/manumr/orgs","repos_url":"https://api.github.com/users/manumr/repos","events_url":"https://api.github.com/users/manumr/events{/privacy}","received_events_url":"https://api.github.com/users/manumr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-30T16:38:16Z","updated_at":"2016-06-30T16:46:00Z","closed_at":null,"body":"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.\r\n\r\n```\r\nPOST test_index/_update_by_query\r\n{\r\n  \"query\": {\r\n    \"match\": {\r\n      \"label\": {\r\n        \"query\": \" checked\",\r\n        \"type\": \"phrase\"\r\n      }\r\n    }\r\n  },\r\n  \"script\": \"ctx._source.status = 'ok'\"\r\n}\r\n```\r\n\r\nLooks like it's finding the documents, just doesn't update them. Here is the output in marvel\r\n\r\n```\r\n{\r\n   \"ok\": true,\r\n   \"took\": 7531,\r\n   \"total\": 230954,\r\n   \"updated\": 0,\r\n   \"indices\": [\r\n      {\r\n         \"test_index\": {}\r\n      }\r\n    ]\r\n}\r\n```\r\n\r\nI've enabled dynamic_scripting as well. Any help would be most appreciated. Thanks -"},"comment":{"url":"https://api.github.com/repos/yakaz/elasticsearch-action-updatebyquery/issues/comments/229717455","html_url":"https://github.com/yakaz/elasticsearch-action-updatebyquery/issues/49#issuecomment-229717455","issue_url":"https://api.github.com/repos/yakaz/elasticsearch-action-updatebyquery/issues/49","id":229717455,"user":{"login":"manumr","id":1091470,"avatar_url":"https://avatars.githubusercontent.com/u/1091470?v=3","gravatar_id":"","url":"https://api.github.com/users/manumr","html_url":"https://github.com/manumr","followers_url":"https://api.github.com/users/manumr/followers","following_url":"https://api.github.com/users/manumr/following{/other_user}","gists_url":"https://api.github.com/users/manumr/gists{/gist_id}","starred_url":"https://api.github.com/users/manumr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manumr/subscriptions","organizations_url":"https://api.github.com/users/manumr/orgs","repos_url":"https://api.github.com/users/manumr/repos","events_url":"https://api.github.com/users/manumr/events{/privacy}","received_events_url":"https://api.github.com/users/manumr/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T16:46:00Z","updated_at":"2016-06-30T16:46:00Z","body":"Figured out what was going on after reading through a previous issue along the sames lines. Had to add \r\n\r\n`script.disable_dynamic: false` \r\n\r\nto the .yml file. Thanks for the tip. This works as expected."}}
{"actor":{"display_login":"manumr"}}