{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/745","repository_url":"https://api.github.com/repos/elastic/elasticsearch-py","labels_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/745/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/745/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/745/events","html_url":"https://github.com/elastic/elasticsearch-py/issues/745","id":305310761,"number":745,"title":"put_template TransportError(400, 'illegal_argument_exception'","user":{"login":"ehf5307","id":9353933,"avatar_url":"https://avatars0.githubusercontent.com/u/9353933?v=4","gravatar_id":"","url":"https://api.github.com/users/ehf5307","html_url":"https://github.com/ehf5307","followers_url":"https://api.github.com/users/ehf5307/followers","following_url":"https://api.github.com/users/ehf5307/following{/other_user}","gists_url":"https://api.github.com/users/ehf5307/gists{/gist_id}","starred_url":"https://api.github.com/users/ehf5307/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehf5307/subscriptions","organizations_url":"https://api.github.com/users/ehf5307/orgs","repos_url":"https://api.github.com/users/ehf5307/repos","events_url":"https://api.github.com/users/ehf5307/events{/privacy}","received_events_url":"https://api.github.com/users/ehf5307/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"fxdgear","id":146550,"avatar_url":"https://avatars2.githubusercontent.com/u/146550?v=4","gravatar_id":"","url":"https://api.github.com/users/fxdgear","html_url":"https://github.com/fxdgear","followers_url":"https://api.github.com/users/fxdgear/followers","following_url":"https://api.github.com/users/fxdgear/following{/other_user}","gists_url":"https://api.github.com/users/fxdgear/gists{/gist_id}","starred_url":"https://api.github.com/users/fxdgear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxdgear/subscriptions","organizations_url":"https://api.github.com/users/fxdgear/orgs","repos_url":"https://api.github.com/users/fxdgear/repos","events_url":"https://api.github.com/users/fxdgear/events{/privacy}","received_events_url":"https://api.github.com/users/fxdgear/received_events","type":"User","site_admin":false},"assignees":[{"login":"fxdgear","id":146550,"avatar_url":"https://avatars2.githubusercontent.com/u/146550?v=4","gravatar_id":"","url":"https://api.github.com/users/fxdgear","html_url":"https://github.com/fxdgear","followers_url":"https://api.github.com/users/fxdgear/followers","following_url":"https://api.github.com/users/fxdgear/following{/other_user}","gists_url":"https://api.github.com/users/fxdgear/gists{/gist_id}","starred_url":"https://api.github.com/users/fxdgear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxdgear/subscriptions","organizations_url":"https://api.github.com/users/fxdgear/orgs","repos_url":"https://api.github.com/users/fxdgear/repos","events_url":"https://api.github.com/users/fxdgear/events{/privacy}","received_events_url":"https://api.github.com/users/fxdgear/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-03-14T20:09:21Z","updated_at":"2018-03-14T21:51:29Z","closed_at":"2018-03-14T21:51:29Z","author_association":"NONE","body":"attempting to use put_template to create a template in ES.\r\nES is running on localhost:9200\r\n\r\n```\r\nes = Elasticsearch()\r\nresp = es.put_template(id=template_name, body=body)\r\n```\r\n\r\ntemplate_name has the string name for the template and body contains the JSON for creating the template (note, I've successfully created this template before using CURL, the template currently does not exist).\r\n\r\nThe error is:\r\n`elasticsearch.exceptions.RequestError: TransportError(400, 'invalid_index_name_exception', \"Invalid index name [_search], must not start with '_', '-', or '+'\")`\r\n\r\nBut at the beginning of the error I can see:\r\n`PUT http://localhost:9200/_search/template/events [status:400 request:0.018s]`\r\n\r\nWhy is it attempting to create the template by PUTing to the _search endpoint and not the _template endpoint?\r\n\r\nDid I miss something or is this broken?"}}
{"actor":{"display_login":"fxdgear"}}