{"action":"created","comment":{"url":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/comments/62453278","id":62453278,"diff_hunk":"@@ -29,4 +33,52 @@ def self.prefectures_with_key\n       }\n     end\n   end\n+\n+  def self.create_index!(options={})\n+    client = __elasticsearch__.client\n+    settings index: {\n+               analysis: {\n+                 tokenizer: {\n+                   ngram_tokenizer: {\n+                     type: 'nGram',\n+                     min_gram: '2',\n+                     max_gram: '3',\n+                     token_chars: ['letter', 'digit']\n+                   }\n+                 },                 \n+                 analyzer: {\n+                   ngram_analyzer: {\n+                     tokenizer: \"ngram_tokenizer\"\n+                   },\n+                   kuromoji_analyzer: {\n+                     tokenizer: 'kuromoji_tokenizer',\n+                     filter:    ['kuromoji_baseform'],","path":"app/models/place.rb","position":33,"original_position":33,"commit_id":"4772f0d2d4763409807cd517e54500c1ee12fc05","original_commit_id":"4772f0d2d4763409807cd517e54500c1ee12fc05","user":{"login":"h5y1m141","id":950924,"avatar_url":"https://avatars.githubusercontent.com/u/950924?v=3","gravatar_id":"","url":"https://api.github.com/users/h5y1m141","html_url":"https://github.com/h5y1m141","followers_url":"https://api.github.com/users/h5y1m141/followers","following_url":"https://api.github.com/users/h5y1m141/following{/other_user}","gists_url":"https://api.github.com/users/h5y1m141/gists{/gist_id}","starred_url":"https://api.github.com/users/h5y1m141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h5y1m141/subscriptions","organizations_url":"https://api.github.com/users/h5y1m141/orgs","repos_url":"https://api.github.com/users/h5y1m141/repos","events_url":"https://api.github.com/users/h5y1m141/events{/privacy}","received_events_url":"https://api.github.com/users/h5y1m141/received_events","type":"User","site_admin":false},"body":"__[rubocop]__\n* Avoid comma after the last item of a hash. [:ref](https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas)","created_at":"2016-05-09T06:11:10Z","updated_at":"2016-05-09T06:11:10Z","html_url":"https://github.com/h5y1m141/life_with_beer/pull/112#discussion_r62453278","pull_request_url":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/comments/62453278"},"html":{"href":"https://github.com/h5y1m141/life_with_beer/pull/112#discussion_r62453278"},"pull_request":{"href":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/112","id":69299170,"html_url":"https://github.com/h5y1m141/life_with_beer/pull/112","diff_url":"https://github.com/h5y1m141/life_with_beer/pull/112.diff","patch_url":"https://github.com/h5y1m141/life_with_beer/pull/112.patch","issue_url":"https://api.github.com/repos/h5y1m141/life_with_beer/issues/112","number":112,"state":"open","locked":false,"title":"お店の場所をElasticSearch経由で検索できる基盤整備","user":{"login":"h5y1m141","id":950924,"avatar_url":"https://avatars.githubusercontent.com/u/950924?v=3","gravatar_id":"","url":"https://api.github.com/users/h5y1m141","html_url":"https://github.com/h5y1m141","followers_url":"https://api.github.com/users/h5y1m141/followers","following_url":"https://api.github.com/users/h5y1m141/following{/other_user}","gists_url":"https://api.github.com/users/h5y1m141/gists{/gist_id}","starred_url":"https://api.github.com/users/h5y1m141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h5y1m141/subscriptions","organizations_url":"https://api.github.com/users/h5y1m141/orgs","repos_url":"https://api.github.com/users/h5y1m141/repos","events_url":"https://api.github.com/users/h5y1m141/events{/privacy}","received_events_url":"https://api.github.com/users/h5y1m141/received_events","type":"User","site_admin":false},"body":"issue #111 の対応","created_at":"2016-05-09T06:11:03Z","updated_at":"2016-05-09T06:11:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a7087cd53c421570d996257fc72d477fddc4ebc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/112/commits","review_comments_url":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/112/comments","review_comment_url":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/h5y1m141/life_with_beer/issues/112/comments","statuses_url":"https://api.github.com/repos/h5y1m141/life_with_beer/statuses/4772f0d2d4763409807cd517e54500c1ee12fc05","head":{"label":"h5y1m141:feature/ISSUE-111","ref":"feature/ISSUE-111","sha":"4772f0d2d4763409807cd517e54500c1ee12fc05","user":{"login":"h5y1m141","id":950924,"avatar_url":"https://avatars.githubusercontent.com/u/950924?v=3","gravatar_id":"","url":"https://api.github.com/users/h5y1m141","html_url":"https://github.com/h5y1m141","followers_url":"https://api.github.com/users/h5y1m141/followers","following_url":"https://api.github.com/users/h5y1m141/following{/other_user}","gists_url":"https://api.github.com/users/h5y1m141/gists{/gist_id}","starred_url":"https://api.github.com/users/h5y1m141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h5y1m141/subscriptions","organizations_url":"https://api.github.com/users/h5y1m141/orgs","repos_url":"https://api.github.com/users/h5y1m141/repos","events_url":"https://api.github.com/users/h5y1m141/events{/privacy}","received_events_url":"https://api.github.com/users/h5y1m141/received_events","type":"User","site_admin":false},"repo":{"id":53923722,"name":"life_with_beer","full_name":"h5y1m141/life_with_beer","owner":{"login":"h5y1m141","id":950924,"avatar_url":"https://avatars.githubusercontent.com/u/950924?v=3","gravatar_id":"","url":"https://api.github.com/users/h5y1m141","html_url":"https://github.com/h5y1m141","followers_url":"https://api.github.com/users/h5y1m141/followers","following_url":"https://api.github.com/users/h5y1m141/following{/other_user}","gists_url":"https://api.github.com/users/h5y1m141/gists{/gist_id}","starred_url":"https://api.github.com/users/h5y1m141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h5y1m141/subscriptions","organizations_url":"https://api.github.com/users/h5y1m141/orgs","repos_url":"https://api.github.com/users/h5y1m141/repos","events_url":"https://api.github.com/users/h5y1m141/events{/privacy}","received_events_url":"https://api.github.com/users/h5y1m141/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h5y1m141/life_with_beer","description":"","fork":false,"url":"https://api.github.com/repos/h5y1m141/life_with_beer","forks_url":"https://api.github.com/repos/h5y1m141/life_with_beer/forks","keys_url":"https://api.github.com/repos/h5y1m141/life_with_beer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h5y1m141/life_with_beer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h5y1m141/life_with_beer/teams","hooks_url":"https://api.github.com/repos/h5y1m141/life_with_beer/hooks","issue_events_url":"https://api.github.com/repos/h5y1m141/life_with_beer/issues/events{/number}","events_url":"https://api.github.com/repos/h5y1m141/life_with_beer/events","assignees_url":"https://api.github.com/repos/h5y1m141/life_with_beer/assignees{/user}","branches_url":"https://api.github.com/repos/h5y1m141/life_with_beer/branches{/branch}","tags_url":"https://api.github.com/repos/h5y1m141/life_with_beer/tags","blobs_url":"https://api.github.com/repos/h5y1m141/life_with_beer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h5y1m141/life_with_beer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h5y1m141/life_with_beer/git/refs{/sha}","trees_url":"https://api.github.com/repos/h5y1m141/life_with_beer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h5y1m141/life_with_beer/statuses/{sha}","languages_url":"https://api.github.com/repos/h5y1m141/life_with_beer/languages","stargazers_url":"https://api.github.com/repos/h5y1m141/life_with_beer/stargazers","contributors_url":"https://api.github.com/repos/h5y1m141/life_with_beer/contributors","subscribers_url":"https://api.github.com/repos/h5y1m141/life_with_beer/subscribers","subscription_url":"https://api.github.com/repos/h5y1m141/life_with_beer/subscription","commits_url":"https://api.github.com/repos/h5y1m141/life_with_beer/commits{/sha}","git_commits_url":"https://api.github.com/repos/h5y1m141/life_with_beer/git/commits{/sha}","comments_url":"https://api.github.com/repos/h5y1m141/life_with_beer/comments{/number}","issue_comment_url":"https://api.github.com/repos/h5y1m141/life_with_beer/issues/comments{/number}","contents_url":"https://api.github.com/repos/h5y1m141/life_with_beer/contents/{+path}","compare_url":"https://api.github.com/repos/h5y1m141/life_with_beer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h5y1m141/life_with_beer/merges","archive_url":"https://api.github.com/repos/h5y1m141/life_with_beer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h5y1m141/life_with_beer/downloads","issues_url":"https://api.github.com/repos/h5y1m141/life_with_beer/issues{/number}","pulls_url":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls{/number}","milestones_url":"https://api.github.com/repos/h5y1m141/life_with_beer/milestones{/number}","notifications_url":"https://api.github.com/repos/h5y1m141/life_with_beer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h5y1m141/life_with_beer/labels{/name}","releases_url":"https://api.github.com/repos/h5y1m141/life_with_beer/releases{/id}","deployments_url":"https://api.github.com/repos/h5y1m141/life_with_beer/deployments","created_at":"2016-03-15T07:28:27Z","updated_at":"2016-04-15T01:13:07Z","pushed_at":"2016-05-09T06:11:03Z","git_url":"git://github.com/h5y1m141/life_with_beer.git","ssh_url":"git@github.com:h5y1m141/life_with_beer.git","clone_url":"https://github.com/h5y1m141/life_with_beer.git","svn_url":"https://github.com/h5y1m141/life_with_beer","homepage":null,"size":1998,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":1,"default_branch":"develop"}},"base":{"label":"h5y1m141:develop","ref":"develop","sha":"1ab1b83499a033f138e610bc1fc4c07d06bd835e","user":{"login":"h5y1m141","id":950924,"avatar_url":"https://avatars.githubusercontent.com/u/950924?v=3","gravatar_id":"","url":"https://api.github.com/users/h5y1m141","html_url":"https://github.com/h5y1m141","followers_url":"https://api.github.com/users/h5y1m141/followers","following_url":"https://api.github.com/users/h5y1m141/following{/other_user}","gists_url":"https://api.github.com/users/h5y1m141/gists{/gist_id}","starred_url":"https://api.github.com/users/h5y1m141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h5y1m141/subscriptions","organizations_url":"https://api.github.com/users/h5y1m141/orgs","repos_url":"https://api.github.com/users/h5y1m141/repos","events_url":"https://api.github.com/users/h5y1m141/events{/privacy}","received_events_url":"https://api.github.com/users/h5y1m141/received_events","type":"User","site_admin":false},"repo":{"id":53923722,"name":"life_with_beer","full_name":"h5y1m141/life_with_beer","owner":{"login":"h5y1m141","id":950924,"avatar_url":"https://avatars.githubusercontent.com/u/950924?v=3","gravatar_id":"","url":"https://api.github.com/users/h5y1m141","html_url":"https://github.com/h5y1m141","followers_url":"https://api.github.com/users/h5y1m141/followers","following_url":"https://api.github.com/users/h5y1m141/following{/other_user}","gists_url":"https://api.github.com/users/h5y1m141/gists{/gist_id}","starred_url":"https://api.github.com/users/h5y1m141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h5y1m141/subscriptions","organizations_url":"https://api.github.com/users/h5y1m141/orgs","repos_url":"https://api.github.com/users/h5y1m141/repos","events_url":"https://api.github.com/users/h5y1m141/events{/privacy}","received_events_url":"https://api.github.com/users/h5y1m141/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h5y1m141/life_with_beer","description":"","fork":false,"url":"https://api.github.com/repos/h5y1m141/life_with_beer","forks_url":"https://api.github.com/repos/h5y1m141/life_with_beer/forks","keys_url":"https://api.github.com/repos/h5y1m141/life_with_beer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h5y1m141/life_with_beer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h5y1m141/life_with_beer/teams","hooks_url":"https://api.github.com/repos/h5y1m141/life_with_beer/hooks","issue_events_url":"https://api.github.com/repos/h5y1m141/life_with_beer/issues/events{/number}","events_url":"https://api.github.com/repos/h5y1m141/life_with_beer/events","assignees_url":"https://api.github.com/repos/h5y1m141/life_with_beer/assignees{/user}","branches_url":"https://api.github.com/repos/h5y1m141/life_with_beer/branches{/branch}","tags_url":"https://api.github.com/repos/h5y1m141/life_with_beer/tags","blobs_url":"https://api.github.com/repos/h5y1m141/life_with_beer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h5y1m141/life_with_beer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h5y1m141/life_with_beer/git/refs{/sha}","trees_url":"https://api.github.com/repos/h5y1m141/life_with_beer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h5y1m141/life_with_beer/statuses/{sha}","languages_url":"https://api.github.com/repos/h5y1m141/life_with_beer/languages","stargazers_url":"https://api.github.com/repos/h5y1m141/life_with_beer/stargazers","contributors_url":"https://api.github.com/repos/h5y1m141/life_with_beer/contributors","subscribers_url":"https://api.github.com/repos/h5y1m141/life_with_beer/subscribers","subscription_url":"https://api.github.com/repos/h5y1m141/life_with_beer/subscription","commits_url":"https://api.github.com/repos/h5y1m141/life_with_beer/commits{/sha}","git_commits_url":"https://api.github.com/repos/h5y1m141/life_with_beer/git/commits{/sha}","comments_url":"https://api.github.com/repos/h5y1m141/life_with_beer/comments{/number}","issue_comment_url":"https://api.github.com/repos/h5y1m141/life_with_beer/issues/comments{/number}","contents_url":"https://api.github.com/repos/h5y1m141/life_with_beer/contents/{+path}","compare_url":"https://api.github.com/repos/h5y1m141/life_with_beer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h5y1m141/life_with_beer/merges","archive_url":"https://api.github.com/repos/h5y1m141/life_with_beer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h5y1m141/life_with_beer/downloads","issues_url":"https://api.github.com/repos/h5y1m141/life_with_beer/issues{/number}","pulls_url":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls{/number}","milestones_url":"https://api.github.com/repos/h5y1m141/life_with_beer/milestones{/number}","notifications_url":"https://api.github.com/repos/h5y1m141/life_with_beer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h5y1m141/life_with_beer/labels{/name}","releases_url":"https://api.github.com/repos/h5y1m141/life_with_beer/releases{/id}","deployments_url":"https://api.github.com/repos/h5y1m141/life_with_beer/deployments","created_at":"2016-03-15T07:28:27Z","updated_at":"2016-04-15T01:13:07Z","pushed_at":"2016-05-09T06:11:03Z","git_url":"git://github.com/h5y1m141/life_with_beer.git","ssh_url":"git@github.com:h5y1m141/life_with_beer.git","clone_url":"https://github.com/h5y1m141/life_with_beer.git","svn_url":"https://github.com/h5y1m141/life_with_beer","homepage":null,"size":1998,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":16,"forks":0,"open_issues":16,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/112"},"html":{"href":"https://github.com/h5y1m141/life_with_beer/pull/112"},"issue":{"href":"https://api.github.com/repos/h5y1m141/life_with_beer/issues/112"},"comments":{"href":"https://api.github.com/repos/h5y1m141/life_with_beer/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/h5y1m141/life_with_beer/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/h5y1m141/life_with_beer/statuses/4772f0d2d4763409807cd517e54500c1ee12fc05"}}}}