{"action":"opened","issue":{"url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/520","repository_url":"https://api.github.com/repos/mongodb-labs/mongo-connector","labels_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/520/comments","events_url":"https://api.github.com/repos/mongodb-labs/mongo-connector/issues/520/events","html_url":"https://github.com/mongodb-labs/mongo-connector/issues/520","id":175574388,"number":520,"title":"Edits to array elements aren't replicated by Mongo Connector","user":{"login":"letsgolesco","id":3138141,"avatar_url":"https://avatars.githubusercontent.com/u/3138141?v=3","gravatar_id":"","url":"https://api.github.com/users/letsgolesco","html_url":"https://github.com/letsgolesco","followers_url":"https://api.github.com/users/letsgolesco/followers","following_url":"https://api.github.com/users/letsgolesco/following{/other_user}","gists_url":"https://api.github.com/users/letsgolesco/gists{/gist_id}","starred_url":"https://api.github.com/users/letsgolesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letsgolesco/subscriptions","organizations_url":"https://api.github.com/users/letsgolesco/orgs","repos_url":"https://api.github.com/users/letsgolesco/repos","events_url":"https://api.github.com/users/letsgolesco/events{/privacy}","received_events_url":"https://api.github.com/users/letsgolesco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-07T18:32:22Z","updated_at":"2016-09-07T18:32:22Z","closed_at":null,"body":"I'm running Mongo Connector to replicate data from a MongoDB instance to an Elasticsearch instance.\r\n\r\nI have a number of fields in my documents that are arrays. Some are arrays of strings, others are arrays of objects (including [geojson](http://geojson.org/) objects).\r\n\r\nI've noticed that `$addToSet` and `$pull` updates in MongoDB result in the whole array being updated in Elasticsearch.\r\n\r\nSome important updates aren't replicated however, including:\r\n* Overwrites of array elements (e.g. `{ $set: { \"array.0\": \"newValue\" } }`)\r\n* Edits to objects in arrays (e.g. `{ $set: { \"array.$.field\": \"newValue\" } }`)\r\n\r\nIs there a workaround for this, or a work in progress to fix it, or maybe something I'm doing wrong?"}}
{"actor":{"display_login":"letsgolesco"}}