{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/17447","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/17447/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/17447/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/17447/events","html_url":"https://github.com/elastic/elasticsearch/issues/17447","id":144895215,"number":17447,"title":"Reindex from remote cluster","user":{"login":"clintongormley","id":56599,"avatar_url":"https://avatars.githubusercontent.com/u/56599?v=3","gravatar_id":"","url":"https://api.github.com/users/clintongormley","html_url":"https://github.com/clintongormley","followers_url":"https://api.github.com/users/clintongormley/followers","following_url":"https://api.github.com/users/clintongormley/following{/other_user}","gists_url":"https://api.github.com/users/clintongormley/gists{/gist_id}","starred_url":"https://api.github.com/users/clintongormley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintongormley/subscriptions","organizations_url":"https://api.github.com/users/clintongormley/orgs","repos_url":"https://api.github.com/users/clintongormley/repos","events_url":"https://api.github.com/users/clintongormley/events{/privacy}","received_events_url":"https://api.github.com/users/clintongormley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Reindex%20API","name":":Reindex API","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/feature","name":"feature","color":"328a58"}],"state":"open","locked":false,"assignee":{"login":"nik9000","id":215970,"avatar_url":"https://avatars.githubusercontent.com/u/215970?v=3","gravatar_id":"","url":"https://api.github.com/users/nik9000","html_url":"https://github.com/nik9000","followers_url":"https://api.github.com/users/nik9000/followers","following_url":"https://api.github.com/users/nik9000/following{/other_user}","gists_url":"https://api.github.com/users/nik9000/gists{/gist_id}","starred_url":"https://api.github.com/users/nik9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik9000/subscriptions","organizations_url":"https://api.github.com/users/nik9000/orgs","repos_url":"https://api.github.com/users/nik9000/repos","events_url":"https://api.github.com/users/nik9000/events{/privacy}","received_events_url":"https://api.github.com/users/nik9000/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-03-31T13:04:02Z","updated_at":"2016-05-04T20:04:18Z","closed_at":null,"body":"The reindex API should be able to pull data from an index in a remote cluster.  This would allow importing an index in a 1.x cluster into a cluster running Elasticsearch 5 or later.\r\n\r\nThe syntax could look like this:\r\n\r\n    POST /_reindex\r\n    {\r\n      \"source\": {\r\n        \"remote\": {\r\n          \"host\": \"192.168.1.2:9200\",\r\n          \"username\": \"foo\",\r\n          \"password\": \"bar\"\r\n        },\r\n        \"index\": \"twitter\",\r\n        \"query\": {\r\n          \"match\": {\r\n            \"user\": \"kimchy\"\r\n          }\r\n        }\r\n      },\r\n      \"dest\": {\r\n        \"index\": \"new_twitter\"\r\n      }\r\n    }\r\n\r\nThe `username` and `password` and any other options within `remote` would be used to configure the HTTP client contacting the remote server, and the `query` etc would be passed to the remote server without parsing (which deals with any API changes)."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/216985166","html_url":"https://github.com/elastic/elasticsearch/issues/17447#issuecomment-216985166","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/17447","id":216985166,"user":{"login":"nik9000","id":215970,"avatar_url":"https://avatars.githubusercontent.com/u/215970?v=3","gravatar_id":"","url":"https://api.github.com/users/nik9000","html_url":"https://github.com/nik9000","followers_url":"https://api.github.com/users/nik9000/followers","following_url":"https://api.github.com/users/nik9000/following{/other_user}","gists_url":"https://api.github.com/users/nik9000/gists{/gist_id}","starred_url":"https://api.github.com/users/nik9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik9000/subscriptions","organizations_url":"https://api.github.com/users/nik9000/orgs","repos_url":"https://api.github.com/users/nik9000/repos","events_url":"https://api.github.com/users/nik9000/events{/privacy}","received_events_url":"https://api.github.com/users/nik9000/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T20:04:18Z","updated_at":"2016-05-04T20:04:18Z","body":"> +1 @nik9000 eagerly waiting for this to be released in 1.x\r\n\r\nIt'll be a 5.0 or 5.1 feature depending on when I get time to really start it. You should be able to connect to 1.x with it though."}}