{"action":"opened","issue":{"url":"https://api.github.com/repos/phutchins/logstash-input-mongodb/issues/14","labels_url":"https://api.github.com/repos/phutchins/logstash-input-mongodb/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/phutchins/logstash-input-mongodb/issues/14/comments","events_url":"https://api.github.com/repos/phutchins/logstash-input-mongodb/issues/14/events","html_url":"https://github.com/phutchins/logstash-input-mongodb/issues/14","id":110524717,"number":14,"title":"Retain complex JSON structure from Mongo","user":{"login":"snagajot","id":14996528,"avatar_url":"https://avatars.githubusercontent.com/u/14996528?v=3","gravatar_id":"","url":"https://api.github.com/users/snagajot","html_url":"https://github.com/snagajot","followers_url":"https://api.github.com/users/snagajot/followers","following_url":"https://api.github.com/users/snagajot/following{/other_user}","gists_url":"https://api.github.com/users/snagajot/gists{/gist_id}","starred_url":"https://api.github.com/users/snagajot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snagajot/subscriptions","organizations_url":"https://api.github.com/users/snagajot/orgs","repos_url":"https://api.github.com/users/snagajot/repos","events_url":"https://api.github.com/users/snagajot/events{/privacy}","received_events_url":"https://api.github.com/users/snagajot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T19:26:42Z","updated_at":"2015-10-08T19:26:42Z","closed_at":null,"body":"@phutchins My mongo contains complex nested JSON documents that I am trying to index into Elastic search (with a predefined mapping). By using the plugin in either 'flatten' or 'dig' mode, the complex JSON structure is lost. For example, array of nested json documents are represented as a string so Elastic does apply the mapping against it. \r\n\r\nAny thoughts on how to retain the structure from Mongo without any flattening ?\r\n\r\nThanks!"}}