{"action":"created","issue":{"url":"https://api.github.com/repos/knockrentals/scrapy-elasticsearch/issues/72","repository_url":"https://api.github.com/repos/knockrentals/scrapy-elasticsearch","labels_url":"https://api.github.com/repos/knockrentals/scrapy-elasticsearch/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/knockrentals/scrapy-elasticsearch/issues/72/comments","events_url":"https://api.github.com/repos/knockrentals/scrapy-elasticsearch/issues/72/events","html_url":"https://github.com/knockrentals/scrapy-elasticsearch/pull/72","id":267182909,"number":72,"title":"Add index_type from a field in the item ","user":{"login":"aleroot","id":935261,"avatar_url":"https://avatars0.githubusercontent.com/u/935261?v=4","gravatar_id":"","url":"https://api.github.com/users/aleroot","html_url":"https://github.com/aleroot","followers_url":"https://api.github.com/users/aleroot/followers","following_url":"https://api.github.com/users/aleroot/following{/other_user}","gists_url":"https://api.github.com/users/aleroot/gists{/gist_id}","starred_url":"https://api.github.com/users/aleroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleroot/subscriptions","organizations_url":"https://api.github.com/users/aleroot/orgs","repos_url":"https://api.github.com/users/aleroot/repos","events_url":"https://api.github.com/users/aleroot/events{/privacy}","received_events_url":"https://api.github.com/users/aleroot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-20T13:51:43Z","updated_at":"2017-10-23T03:45:38Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/knockrentals/scrapy-elasticsearch/pulls/72","html_url":"https://github.com/knockrentals/scrapy-elasticsearch/pull/72","diff_url":"https://github.com/knockrentals/scrapy-elasticsearch/pull/72.diff","patch_url":"https://github.com/knockrentals/scrapy-elasticsearch/pull/72.patch"},"body":"With this commit I've added the possibility to name the type of index based on a field present in the item.\r\n\r\nTo access an item field just use the variable in this format `%field_name%`, so basically all names surrounded by percentage sign will be evaluated as dynamic field and their value will be retrieved from the specified item field.\r\n\r\nSo for example to get the value of the item field named **supplier**: \r\n\r\n`ELASTICSEARCH_TYPE = '%supplier%'`"},"comment":{"url":"https://api.github.com/repos/knockrentals/scrapy-elasticsearch/issues/comments/338540649","html_url":"https://github.com/knockrentals/scrapy-elasticsearch/pull/72#issuecomment-338540649","issue_url":"https://api.github.com/repos/knockrentals/scrapy-elasticsearch/issues/72","id":338540649,"user":{"login":"jayzeng","id":141891,"avatar_url":"https://avatars0.githubusercontent.com/u/141891?v=4","gravatar_id":"","url":"https://api.github.com/users/jayzeng","html_url":"https://github.com/jayzeng","followers_url":"https://api.github.com/users/jayzeng/followers","following_url":"https://api.github.com/users/jayzeng/following{/other_user}","gists_url":"https://api.github.com/users/jayzeng/gists{/gist_id}","starred_url":"https://api.github.com/users/jayzeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayzeng/subscriptions","organizations_url":"https://api.github.com/users/jayzeng/orgs","repos_url":"https://api.github.com/users/jayzeng/repos","events_url":"https://api.github.com/users/jayzeng/events{/privacy}","received_events_url":"https://api.github.com/users/jayzeng/received_events","type":"User","site_admin":false},"created_at":"2017-10-23T03:45:38Z","updated_at":"2017-10-23T03:45:38Z","author_association":"OWNER","body":"@aleroot your pr has merge conflict, also please update the readme to reflect the required changes for settings.py and bump up the version number"}}
{"actor":{"display_login":"jayzeng"}}