{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1764","labels_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1764/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1764/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-net/issues/1764/events","html_url":"https://github.com/elastic/elasticsearch-net/issues/1764","id":129323513,"number":1764,"title":"Hit<T> missing _ttl","user":{"login":"russcam","id":208231,"avatar_url":"https://avatars.githubusercontent.com/u/208231?v=3","gravatar_id":"","url":"https://api.github.com/users/russcam","html_url":"https://github.com/russcam","followers_url":"https://api.github.com/users/russcam/followers","following_url":"https://api.github.com/users/russcam/following{/other_user}","gists_url":"https://api.github.com/users/russcam/gists{/gist_id}","starred_url":"https://api.github.com/users/russcam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russcam/subscriptions","organizations_url":"https://api.github.com/users/russcam/orgs","repos_url":"https://api.github.com/users/russcam/repos","events_url":"https://api.github.com/users/russcam/events{/privacy}","received_events_url":"https://api.github.com/users/russcam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-28T03:39:28Z","updated_at":"2016-01-28T03:39:28Z","closed_at":null,"body":"Hit<T> should have a `Ttl` property, mapped to `_ttl` on `hits`. to demonstrate\r\n\r\n```javascript\r\nPUT my_index\r\n{\r\n  \"mappings\": {\r\n    \"my_type\": {\r\n      \"_timestamp\": { \r\n        \"enabled\": true\r\n      },\r\n      \"_ttl\": {\r\n        \"enabled\": true,\r\n        \"default\": \"1d\"\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nPUT my_index/my_type/1?timestamp=2016-01-29 \r\n{ \"text\": \"Timestamp as a formatted date\" }\r\n\r\nPUT my_index/my_type/2 \r\n{ \"text\": \"Autogenerated timestamp set to now()\" }\r\n\r\nGET my_index/my_type/_search\r\n```\r\n\r\nreturns\r\n\r\n```javascript\r\n{\r\n   \"took\": 26,\r\n   \"timed_out\": false,\r\n   \"_shards\": {\r\n      \"total\": 5,\r\n      \"successful\": 5,\r\n      \"failed\": 0\r\n   },\r\n   \"hits\": {\r\n      \"total\": 2,\r\n      \"max_score\": 1,\r\n      \"hits\": [\r\n         {\r\n            \"_index\": \"my_index\",\r\n            \"_type\": \"my_type\",\r\n            \"_id\": \"2\",\r\n            \"_score\": 1,\r\n            \"_ttl\": 86398231,\r\n            \"_timestamp\": 1453951060507,\r\n            \"_source\": {\r\n               \"text\": \"Autogenerated timestamp set to now()\"\r\n            }\r\n         },\r\n         {\r\n            \"_index\": \"my_index\",\r\n            \"_type\": \"my_type\",\r\n            \"_id\": \"1\",\r\n            \"_score\": 1,\r\n            \"_ttl\": 160937724,\r\n            \"_timestamp\": 1454025600000,\r\n            \"_source\": {\r\n               \"text\": \"Timestamp as a formatted date\"\r\n            }\r\n         }\r\n      ]\r\n   }\r\n}\r\n```\r\n\r\nI think this should be copied over when re-indexing too. "}}