{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/1251","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/1251/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/1251/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/1251/events","html_url":"https://github.com/elasticsearch/elasticsearch-net/issues/1251","id":57882248,"number":1251,"title":"NEST - TypeExists ignores default index","user":{"login":"mif007","id":2647353,"avatar_url":"https://avatars.githubusercontent.com/u/2647353?v=3","gravatar_id":"","url":"https://api.github.com/users/mif007","html_url":"https://github.com/mif007","followers_url":"https://api.github.com/users/mif007/followers","following_url":"https://api.github.com/users/mif007/following{/other_user}","gists_url":"https://api.github.com/users/mif007/gists{/gist_id}","starred_url":"https://api.github.com/users/mif007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mif007/subscriptions","organizations_url":"https://api.github.com/users/mif007/orgs","repos_url":"https://api.github.com/users/mif007/repos","events_url":"https://api.github.com/users/mif007/events{/privacy}","received_events_url":"https://api.github.com/users/mif007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-17T04:28:55Z","updated_at":"2015-02-17T12:09:50Z","closed_at":null,"body":"When using a TypeExists method without specifying an Index, the DefaultIndex defined in the ElasticClient is ignored and exception \"Index() is not specified\" is thrown"},"comment":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/comments/74658357","html_url":"https://github.com/elasticsearch/elasticsearch-net/issues/1251#issuecomment-74658357","issue_url":"https://api.github.com/repos/elasticsearch/elasticsearch-net/issues/1251","id":74658357,"user":{"login":"Mpdreamz","id":245275,"avatar_url":"https://avatars.githubusercontent.com/u/245275?v=3","gravatar_id":"","url":"https://api.github.com/users/Mpdreamz","html_url":"https://github.com/Mpdreamz","followers_url":"https://api.github.com/users/Mpdreamz/followers","following_url":"https://api.github.com/users/Mpdreamz/following{/other_user}","gists_url":"https://api.github.com/users/Mpdreamz/gists{/gist_id}","starred_url":"https://api.github.com/users/Mpdreamz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mpdreamz/subscriptions","organizations_url":"https://api.github.com/users/Mpdreamz/orgs","repos_url":"https://api.github.com/users/Mpdreamz/repos","events_url":"https://api.github.com/users/Mpdreamz/events{/privacy}","received_events_url":"https://api.github.com/users/Mpdreamz/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T12:09:50Z","updated_at":"2015-02-17T12:09:50Z","body":"Thanks for reporting this @mif007 \r\n\r\nMost IndexTypePaths are typed and default to inferring the index from there. TypeExists uses an untyped version, I've submitted a PR to make this untyped version smarter. \r\n\r\nIt will now use the `T` provided to `Type<T>()` as well to infer the indexname if not indexname has been explicitly provided. \r\n\r\n\r\n"}}