{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/11429","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11429/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11429/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11429/events","html_url":"https://github.com/elastic/elasticsearch/issues/11429","id":82526785,"number":11429,"title":".prepareSearch(\"index\").setTypes(\"mytype\") does not set types","user":{"login":"rookie7799","id":1242590,"avatar_url":"https://avatars.githubusercontent.com/u/1242590?v=3","gravatar_id":"","url":"https://api.github.com/users/rookie7799","html_url":"https://github.com/rookie7799","followers_url":"https://api.github.com/users/rookie7799/followers","following_url":"https://api.github.com/users/rookie7799/following{/other_user}","gists_url":"https://api.github.com/users/rookie7799/gists{/gist_id}","starred_url":"https://api.github.com/users/rookie7799/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rookie7799/subscriptions","organizations_url":"https://api.github.com/users/rookie7799/orgs","repos_url":"https://api.github.com/users/rookie7799/repos","events_url":"https://api.github.com/users/rookie7799/events{/privacy}","received_events_url":"https://api.github.com/users/rookie7799/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-29T18:03:30Z","updated_at":"2015-05-29T20:32:13Z","closed_at":"2015-05-29T18:48:55Z","body":"Hi,\r\nWhen I print SearchRequestBuilder to see json the \"types\" : [ ]\r\nIs this normal ?\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/106927850","html_url":"https://github.com/elastic/elasticsearch/issues/11429#issuecomment-106927850","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/11429","id":106927850,"user":{"login":"dadoonet","id":274222,"avatar_url":"https://avatars.githubusercontent.com/u/274222?v=3","gravatar_id":"","url":"https://api.github.com/users/dadoonet","html_url":"https://github.com/dadoonet","followers_url":"https://api.github.com/users/dadoonet/followers","following_url":"https://api.github.com/users/dadoonet/following{/other_user}","gists_url":"https://api.github.com/users/dadoonet/gists{/gist_id}","starred_url":"https://api.github.com/users/dadoonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadoonet/subscriptions","organizations_url":"https://api.github.com/users/dadoonet/orgs","repos_url":"https://api.github.com/users/dadoonet/repos","events_url":"https://api.github.com/users/dadoonet/events{/privacy}","received_events_url":"https://api.github.com/users/dadoonet/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T20:32:13Z","updated_at":"2015-05-29T20:32:13Z","body":"@clintongormley Actually, it looks like a bug to me. \r\n\r\n```java\r\nSearchRequestBuilder builder = client().prepareSearch(\"index\").setTypes(\"type\");\r\nSystem.out.println(\"builder = \" + builder);\r\n```\r\n\r\nGives\r\n\r\n```\r\nbuilder = { }\r\n```\r\n\r\nI think this change did that: https://github.com/elastic/elasticsearch/pull/9944/files#diff-8e501ed49a549876267b54efd2347077R170\r\n\r\nI pinged @javanna about it. Let's see what he thinks about it but we might need to reopen this issue although it might be a duplicate of #9962."}}