{"action":"closed","issue":{"url":"https://api.github.com/repos/miku/esbulk/issues/1","labels_url":"https://api.github.com/repos/miku/esbulk/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/miku/esbulk/issues/1/comments","events_url":"https://api.github.com/repos/miku/esbulk/issues/1/events","html_url":"https://github.com/miku/esbulk/issues/1","id":114292714,"number":1,"title":"Allow mapping to be passed for index creation.","user":{"login":"miku","id":53705,"avatar_url":"https://avatars.githubusercontent.com/u/53705?v=3","gravatar_id":"","url":"https://api.github.com/users/miku","html_url":"https://github.com/miku","followers_url":"https://api.github.com/users/miku/followers","following_url":"https://api.github.com/users/miku/following{/other_user}","gists_url":"https://api.github.com/users/miku/gists{/gist_id}","starred_url":"https://api.github.com/users/miku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miku/subscriptions","organizations_url":"https://api.github.com/users/miku/orgs","repos_url":"https://api.github.com/users/miku/repos","events_url":"https://api.github.com/users/miku/events{/privacy}","received_events_url":"https://api.github.com/users/miku/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"miku","id":53705,"avatar_url":"https://avatars.githubusercontent.com/u/53705?v=3","gravatar_id":"","url":"https://api.github.com/users/miku","html_url":"https://github.com/miku","followers_url":"https://api.github.com/users/miku/followers","following_url":"https://api.github.com/users/miku/following{/other_user}","gists_url":"https://api.github.com/users/miku/gists{/gist_id}","starred_url":"https://api.github.com/users/miku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miku/subscriptions","organizations_url":"https://api.github.com/users/miku/orgs","repos_url":"https://api.github.com/users/miku/repos","events_url":"https://api.github.com/users/miku/events{/privacy}","received_events_url":"https://api.github.com/users/miku/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-10-30T15:31:18Z","updated_at":"2015-11-10T10:55:49Z","closed_at":"2015-11-10T10:55:49Z","body":"If building an index from scratch, we could just pass a mapping definition file, e.g.\r\n\r\n    $ esbulk -mapping mymapping.json -index test -type default file.ldj\r\n\r\nRelated to this, a `-purge` flag could be added, to always delete an existing index before reapplying the mapping and indexing the file, e.g.\r\n\r\n    $ esbulk -purge -mapping mymapping.json -index test -type default file.ldj\r\n"}}