{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-mapper-attachments/issues/127","labels_url":"https://api.github.com/repos/elastic/elasticsearch-mapper-attachments/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-mapper-attachments/issues/127/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-mapper-attachments/issues/127/events","html_url":"https://github.com/elastic/elasticsearch-mapper-attachments/issues/127","id":73019791,"number":127,"title":"An issue is observed where indexing the document with _content_type is not working fine where as with content_type is working fine","user":{"login":"Prashant-Pal","id":6836305,"avatar_url":"https://avatars.githubusercontent.com/u/6836305?v=3","gravatar_id":"","url":"https://api.github.com/users/Prashant-Pal","html_url":"https://github.com/Prashant-Pal","followers_url":"https://api.github.com/users/Prashant-Pal/followers","following_url":"https://api.github.com/users/Prashant-Pal/following{/other_user}","gists_url":"https://api.github.com/users/Prashant-Pal/gists{/gist_id}","starred_url":"https://api.github.com/users/Prashant-Pal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prashant-Pal/subscriptions","organizations_url":"https://api.github.com/users/Prashant-Pal/orgs","repos_url":"https://api.github.com/users/Prashant-Pal/repos","events_url":"https://api.github.com/users/Prashant-Pal/events{/privacy}","received_events_url":"https://api.github.com/users/Prashant-Pal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-05-04T13:31:28Z","updated_at":"2015-05-06T17:23:27Z","closed_at":null,"body":"Hi Team,\r\n\r\nAs per the previous released fields should be send for indexing as _fields, for ex content was made as _content.\r\n\r\nNow while testing the same with Elasticsearch 1.5.2 and Mapper Att 2.5.0, when i am indexing the document with _content_type I am not able to fetch the fields such as docs.content_type where as if I am indexing with content_type I am able to fetch the same.\r\n\r\nLet me know as if content_type is supposed to be indexed as content_type or _content_type?\r\n\r\n~Prashant"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-mapper-attachments/issues/comments/99543543","html_url":"https://github.com/elastic/elasticsearch-mapper-attachments/issues/127#issuecomment-99543543","issue_url":"https://api.github.com/repos/elastic/elasticsearch-mapper-attachments/issues/127","id":99543543,"user":{"login":"Prashant-Pal","id":6836305,"avatar_url":"https://avatars.githubusercontent.com/u/6836305?v=3","gravatar_id":"","url":"https://api.github.com/users/Prashant-Pal","html_url":"https://github.com/Prashant-Pal","followers_url":"https://api.github.com/users/Prashant-Pal/followers","following_url":"https://api.github.com/users/Prashant-Pal/following{/other_user}","gists_url":"https://api.github.com/users/Prashant-Pal/gists{/gist_id}","starred_url":"https://api.github.com/users/Prashant-Pal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Prashant-Pal/subscriptions","organizations_url":"https://api.github.com/users/Prashant-Pal/orgs","repos_url":"https://api.github.com/users/Prashant-Pal/repos","events_url":"https://api.github.com/users/Prashant-Pal/events{/privacy}","received_events_url":"https://api.github.com/users/Prashant-Pal/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T17:23:27Z","updated_at":"2015-05-06T17:23:27Z","body":"Here I mean to say as currently if I am indexing with content_type:\"\" , I\nam able to get the field.content_type properly say application/pdf. So is\nthis an expected behaviour or a bug as every field is made as common\npattern starting with _.\n\nAs we are using that way currently in our application as mentioned above\nand in case it is going to be removed so we should avoid the same at our\napplication now itself.\nOn May 6, 2015 10:42 PM, \"David Pilato\" <notifications@github.com> wrote:\n\n> And what about indexing with content_type :\"something\"\n> Will it be deprecated or unacceptable in next releases?\n>\n> Sorry. I don't understand.\n>\n> If you want to index a value in another field, put it outside the file\n> itself:\n>\n> {\n>   \"my_content_type\": \"whatever\",\n>   \"file\": \"BASE64ENCODEDFILE\"\n> }\n>\n> Did I misunderstand ?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/elastic/elasticsearch-mapper-attachments/issues/127#issuecomment-99541009>\n> .\n>\n"}}