{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/12841","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12841/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12841/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12841/events","html_url":"https://github.com/elastic/elasticsearch/issues/12841","id":100622325,"number":12841,"title":"Highlighting and sub documents","user":{"login":"AndreasTurowski","id":11695938,"avatar_url":"https://avatars.githubusercontent.com/u/11695938?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasTurowski","html_url":"https://github.com/AndreasTurowski","followers_url":"https://api.github.com/users/AndreasTurowski/followers","following_url":"https://api.github.com/users/AndreasTurowski/following{/other_user}","gists_url":"https://api.github.com/users/AndreasTurowski/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasTurowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasTurowski/subscriptions","organizations_url":"https://api.github.com/users/AndreasTurowski/orgs","repos_url":"https://api.github.com/users/AndreasTurowski/repos","events_url":"https://api.github.com/users/AndreasTurowski/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasTurowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-12T19:57:14Z","updated_at":"2015-08-13T04:52:09Z","closed_at":null,"body":"I need a tip, please! We append several attachments to our elastic document. Alle attachments are stored in an array of sub documents called \"ANY_BLOB\". This is mapped to the \"attachment\" type. Per mapping we add a Field \"Reference\" to the ANY_BLOB sub document mapping. This is stored and retrieved well. But if we use the \"highlight\"-feature, we got the highlighting of some of the \"ANY_BLOB\"s, no idea to which subdocument it belongs. Is there any way to assign the \"Reference\"-Field to the highlighting? In fact we have to know, which of the ANY_BLOB-Attachments caused the highlighting."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/130535171","html_url":"https://github.com/elastic/elasticsearch/issues/12841#issuecomment-130535171","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/12841","id":130535171,"user":{"login":"nik9000","id":215970,"avatar_url":"https://avatars.githubusercontent.com/u/215970?v=3","gravatar_id":"","url":"https://api.github.com/users/nik9000","html_url":"https://github.com/nik9000","followers_url":"https://api.github.com/users/nik9000/followers","following_url":"https://api.github.com/users/nik9000/following{/other_user}","gists_url":"https://api.github.com/users/nik9000/gists{/gist_id}","starred_url":"https://api.github.com/users/nik9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik9000/subscriptions","organizations_url":"https://api.github.com/users/nik9000/orgs","repos_url":"https://api.github.com/users/nik9000/repos","events_url":"https://api.github.com/users/nik9000/events{/privacy}","received_events_url":"https://api.github.com/users/nik9000/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T04:52:09Z","updated_at":"2015-08-13T04:52:09Z","body":"If this is parent/child then I don't know the answer. If it is just that\nyou have a list of documents then you can look at the experimental\nhighlighter. It has a feature that will return sibling fields but there are\ntons of caveats to how it works. Try it but be very careful to read the\ndocs.\nOn Aug 12, 2015 12:57 PM, \"AndreasTurowski\" <notifications@github.com>\nwrote:\n\n> I need a tip, please! We append several attachments to our elastic\n> document. Alle attachments are stored in an array of sub documents called\n> \"ANY_BLOB\". This is mapped to the \"attachment\" type. Per mapping we add a\n> Field \"Reference\" to the ANY_BLOB sub document mapping. This is stored and\n> retrieved well. But if we use the \"highlight\"-feature, we got the\n> highlighting of some of the \"ANY_BLOB\"s, no idea to which subdocument it\n> belongs. Is there any way to assign the \"Reference\"-Field to the\n> highlighting? In fact we have to know, which of the ANY_BLOB-Attachments\n> caused the highlighting.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/elastic/elasticsearch/issues/12841>.\n>\n"}}