{"action":"created","comment":{"url":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/comments/115653369","pull_request_review_id":37209578,"id":115653369,"diff_hunk":"@@ -40,19 +46,44 @@\n   \n   @Inject\n   private Logger logger;\n-\n+  \n+  @Inject\n+  private GenericHttpClient httpClient;\n+  \n   private String index;\n   private TransportClient client;\n   \n+  \n   @PostConstruct\n   public void init() {\n+    debugPrint(\"http://localhost:9300\");\n+    debugPrint(\"http://localhost:9200\");\n+    \n     String[] hosts = systemSettingController.getSettingValues(KuntaApiConsts.SYSTEM_SETTING_ELASTIC_SEARCH_HOSTS, DEFAULT_HOSTS);\n     String clusterName = systemSettingController.getSettingValue(KuntaApiConsts.SYSTEM_SETTING_ELASTIC_CLUSTER_NAME, DEFAULT_CLUSTERNAME);\n     index = systemSettingController.getSettingValue(KuntaApiConsts.SYSTEM_SETTING_ELASTIC_INDEX, DEFAULT_INDEX);\n     client = createTransportClient(hosts, clusterName);\n     setup();\n   }\n   \n+  private void debugPrint(String url) {\n+    try {\n+      CloseableHttpClient httpClient = HttpClients.createDefault();","path":"src/main/java/fi/otavanopisto/kuntaapi/server/index/AbstractIndexHander.java","position":49,"original_position":49,"commit_id":"d5e92eac41c08ce839eb5f5119dcbc9be4060b79","original_commit_id":"d5e92eac41c08ce839eb5f5119dcbc9be4060b79","user":{"login":"sonarq","id":21039853,"avatar_url":"https://avatars2.githubusercontent.com/u/21039853?v=3","gravatar_id":"","url":"https://api.github.com/users/sonarq","html_url":"https://github.com/sonarq","followers_url":"https://api.github.com/users/sonarq/followers","following_url":"https://api.github.com/users/sonarq/following{/other_user}","gists_url":"https://api.github.com/users/sonarq/gists{/gist_id}","starred_url":"https://api.github.com/users/sonarq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonarq/subscriptions","organizations_url":"https://api.github.com/users/sonarq/orgs","repos_url":"https://api.github.com/users/sonarq/repos","events_url":"https://api.github.com/users/sonarq/events{/privacy}","received_events_url":"https://api.github.com/users/sonarq/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://sonarsource.github.io/sonar-github/severity-major.png 'Severity: MAJOR') Rename \"httpClient\" which hides the field declared at line 50. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarqube.com/coding_rules#rule_key=squid%3AHiddenFieldCheck)\n","created_at":"2017-05-10T04:49:36Z","updated_at":"2017-05-10T04:49:37Z","html_url":"https://github.com/Metatavu/kunta-api-server/pull/297#discussion_r115653369","pull_request_url":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/297","_links":{"self":{"href":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/comments/115653369"},"html":{"href":"https://github.com/Metatavu/kunta-api-server/pull/297#discussion_r115653369"},"pull_request":{"href":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/297"}}},"pull_request":{"url":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/297","id":119649860,"html_url":"https://github.com/Metatavu/kunta-api-server/pull/297","diff_url":"https://github.com/Metatavu/kunta-api-server/pull/297.diff","patch_url":"https://github.com/Metatavu/kunta-api-server/pull/297.patch","issue_url":"https://api.github.com/repos/Metatavu/kunta-api-server/issues/297","number":297,"state":"open","locked":false,"title":"Feature #296 order by score","user":{"login":"anttileppa","id":1730736,"avatar_url":"https://avatars0.githubusercontent.com/u/1730736?v=3","gravatar_id":"","url":"https://api.github.com/users/anttileppa","html_url":"https://github.com/anttileppa","followers_url":"https://api.github.com/users/anttileppa/followers","following_url":"https://api.github.com/users/anttileppa/following{/other_user}","gists_url":"https://api.github.com/users/anttileppa/gists{/gist_id}","starred_url":"https://api.github.com/users/anttileppa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anttileppa/subscriptions","organizations_url":"https://api.github.com/users/anttileppa/orgs","repos_url":"https://api.github.com/users/anttileppa/repos","events_url":"https://api.github.com/users/anttileppa/events{/privacy}","received_events_url":"https://api.github.com/users/anttileppa/received_events","type":"User","site_admin":false},"body":"Resolves #296","created_at":"2017-05-09T12:37:49Z","updated_at":"2017-05-10T04:49:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"883d248905afea30508ac6bd2f347ba397a6d4fb","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/297/commits","review_comments_url":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/297/comments","review_comment_url":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Metatavu/kunta-api-server/issues/297/comments","statuses_url":"https://api.github.com/repos/Metatavu/kunta-api-server/statuses/d5e92eac41c08ce839eb5f5119dcbc9be4060b79","head":{"label":"Metatavu:feature-#296-order-by-score","ref":"feature-#296-order-by-score","sha":"d5e92eac41c08ce839eb5f5119dcbc9be4060b79","user":{"login":"Metatavu","id":20443466,"avatar_url":"https://avatars3.githubusercontent.com/u/20443466?v=3","gravatar_id":"","url":"https://api.github.com/users/Metatavu","html_url":"https://github.com/Metatavu","followers_url":"https://api.github.com/users/Metatavu/followers","following_url":"https://api.github.com/users/Metatavu/following{/other_user}","gists_url":"https://api.github.com/users/Metatavu/gists{/gist_id}","starred_url":"https://api.github.com/users/Metatavu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metatavu/subscriptions","organizations_url":"https://api.github.com/users/Metatavu/orgs","repos_url":"https://api.github.com/users/Metatavu/repos","events_url":"https://api.github.com/users/Metatavu/events{/privacy}","received_events_url":"https://api.github.com/users/Metatavu/received_events","type":"Organization","site_admin":false},"repo":{"id":75393004,"name":"kunta-api-server","full_name":"Metatavu/kunta-api-server","owner":{"login":"Metatavu","id":20443466,"avatar_url":"https://avatars3.githubusercontent.com/u/20443466?v=3","gravatar_id":"","url":"https://api.github.com/users/Metatavu","html_url":"https://github.com/Metatavu","followers_url":"https://api.github.com/users/Metatavu/followers","following_url":"https://api.github.com/users/Metatavu/following{/other_user}","gists_url":"https://api.github.com/users/Metatavu/gists{/gist_id}","starred_url":"https://api.github.com/users/Metatavu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metatavu/subscriptions","organizations_url":"https://api.github.com/users/Metatavu/orgs","repos_url":"https://api.github.com/users/Metatavu/repos","events_url":"https://api.github.com/users/Metatavu/events{/privacy}","received_events_url":"https://api.github.com/users/Metatavu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Metatavu/kunta-api-server","description":null,"fork":false,"url":"https://api.github.com/repos/Metatavu/kunta-api-server","forks_url":"https://api.github.com/repos/Metatavu/kunta-api-server/forks","keys_url":"https://api.github.com/repos/Metatavu/kunta-api-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Metatavu/kunta-api-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Metatavu/kunta-api-server/teams","hooks_url":"https://api.github.com/repos/Metatavu/kunta-api-server/hooks","issue_events_url":"https://api.github.com/repos/Metatavu/kunta-api-server/issues/events{/number}","events_url":"https://api.github.com/repos/Metatavu/kunta-api-server/events","assignees_url":"https://api.github.com/repos/Metatavu/kunta-api-server/assignees{/user}","branches_url":"https://api.github.com/repos/Metatavu/kunta-api-server/branches{/branch}","tags_url":"https://api.github.com/repos/Metatavu/kunta-api-server/tags","blobs_url":"https://api.github.com/repos/Metatavu/kunta-api-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Metatavu/kunta-api-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Metatavu/kunta-api-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/Metatavu/kunta-api-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Metatavu/kunta-api-server/statuses/{sha}","languages_url":"https://api.github.com/repos/Metatavu/kunta-api-server/languages","stargazers_url":"https://api.github.com/repos/Metatavu/kunta-api-server/stargazers","contributors_url":"https://api.github.com/repos/Metatavu/kunta-api-server/contributors","subscribers_url":"https://api.github.com/repos/Metatavu/kunta-api-server/subscribers","subscription_url":"https://api.github.com/repos/Metatavu/kunta-api-server/subscription","commits_url":"https://api.github.com/repos/Metatavu/kunta-api-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/Metatavu/kunta-api-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/Metatavu/kunta-api-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/Metatavu/kunta-api-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/Metatavu/kunta-api-server/contents/{+path}","compare_url":"https://api.github.com/repos/Metatavu/kunta-api-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Metatavu/kunta-api-server/merges","archive_url":"https://api.github.com/repos/Metatavu/kunta-api-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Metatavu/kunta-api-server/downloads","issues_url":"https://api.github.com/repos/Metatavu/kunta-api-server/issues{/number}","pulls_url":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls{/number}","milestones_url":"https://api.github.com/repos/Metatavu/kunta-api-server/milestones{/number}","notifications_url":"https://api.github.com/repos/Metatavu/kunta-api-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Metatavu/kunta-api-server/labels{/name}","releases_url":"https://api.github.com/repos/Metatavu/kunta-api-server/releases{/id}","deployments_url":"https://api.github.com/repos/Metatavu/kunta-api-server/deployments","created_at":"2016-12-02T12:16:29Z","updated_at":"2017-01-16T06:20:22Z","pushed_at":"2017-05-10T04:48:20Z","git_url":"git://github.com/Metatavu/kunta-api-server.git","ssh_url":"git@github.com:Metatavu/kunta-api-server.git","clone_url":"https://github.com/Metatavu/kunta-api-server.git","svn_url":"https://github.com/Metatavu/kunta-api-server","homepage":null,"size":3507,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"develop"}},"base":{"label":"Metatavu:develop","ref":"develop","sha":"e61a7f6273418985af80a0ef49cf777ce1bce462","user":{"login":"Metatavu","id":20443466,"avatar_url":"https://avatars3.githubusercontent.com/u/20443466?v=3","gravatar_id":"","url":"https://api.github.com/users/Metatavu","html_url":"https://github.com/Metatavu","followers_url":"https://api.github.com/users/Metatavu/followers","following_url":"https://api.github.com/users/Metatavu/following{/other_user}","gists_url":"https://api.github.com/users/Metatavu/gists{/gist_id}","starred_url":"https://api.github.com/users/Metatavu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metatavu/subscriptions","organizations_url":"https://api.github.com/users/Metatavu/orgs","repos_url":"https://api.github.com/users/Metatavu/repos","events_url":"https://api.github.com/users/Metatavu/events{/privacy}","received_events_url":"https://api.github.com/users/Metatavu/received_events","type":"Organization","site_admin":false},"repo":{"id":75393004,"name":"kunta-api-server","full_name":"Metatavu/kunta-api-server","owner":{"login":"Metatavu","id":20443466,"avatar_url":"https://avatars3.githubusercontent.com/u/20443466?v=3","gravatar_id":"","url":"https://api.github.com/users/Metatavu","html_url":"https://github.com/Metatavu","followers_url":"https://api.github.com/users/Metatavu/followers","following_url":"https://api.github.com/users/Metatavu/following{/other_user}","gists_url":"https://api.github.com/users/Metatavu/gists{/gist_id}","starred_url":"https://api.github.com/users/Metatavu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Metatavu/subscriptions","organizations_url":"https://api.github.com/users/Metatavu/orgs","repos_url":"https://api.github.com/users/Metatavu/repos","events_url":"https://api.github.com/users/Metatavu/events{/privacy}","received_events_url":"https://api.github.com/users/Metatavu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Metatavu/kunta-api-server","description":null,"fork":false,"url":"https://api.github.com/repos/Metatavu/kunta-api-server","forks_url":"https://api.github.com/repos/Metatavu/kunta-api-server/forks","keys_url":"https://api.github.com/repos/Metatavu/kunta-api-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Metatavu/kunta-api-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Metatavu/kunta-api-server/teams","hooks_url":"https://api.github.com/repos/Metatavu/kunta-api-server/hooks","issue_events_url":"https://api.github.com/repos/Metatavu/kunta-api-server/issues/events{/number}","events_url":"https://api.github.com/repos/Metatavu/kunta-api-server/events","assignees_url":"https://api.github.com/repos/Metatavu/kunta-api-server/assignees{/user}","branches_url":"https://api.github.com/repos/Metatavu/kunta-api-server/branches{/branch}","tags_url":"https://api.github.com/repos/Metatavu/kunta-api-server/tags","blobs_url":"https://api.github.com/repos/Metatavu/kunta-api-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Metatavu/kunta-api-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Metatavu/kunta-api-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/Metatavu/kunta-api-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Metatavu/kunta-api-server/statuses/{sha}","languages_url":"https://api.github.com/repos/Metatavu/kunta-api-server/languages","stargazers_url":"https://api.github.com/repos/Metatavu/kunta-api-server/stargazers","contributors_url":"https://api.github.com/repos/Metatavu/kunta-api-server/contributors","subscribers_url":"https://api.github.com/repos/Metatavu/kunta-api-server/subscribers","subscription_url":"https://api.github.com/repos/Metatavu/kunta-api-server/subscription","commits_url":"https://api.github.com/repos/Metatavu/kunta-api-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/Metatavu/kunta-api-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/Metatavu/kunta-api-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/Metatavu/kunta-api-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/Metatavu/kunta-api-server/contents/{+path}","compare_url":"https://api.github.com/repos/Metatavu/kunta-api-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Metatavu/kunta-api-server/merges","archive_url":"https://api.github.com/repos/Metatavu/kunta-api-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Metatavu/kunta-api-server/downloads","issues_url":"https://api.github.com/repos/Metatavu/kunta-api-server/issues{/number}","pulls_url":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls{/number}","milestones_url":"https://api.github.com/repos/Metatavu/kunta-api-server/milestones{/number}","notifications_url":"https://api.github.com/repos/Metatavu/kunta-api-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Metatavu/kunta-api-server/labels{/name}","releases_url":"https://api.github.com/repos/Metatavu/kunta-api-server/releases{/id}","deployments_url":"https://api.github.com/repos/Metatavu/kunta-api-server/deployments","created_at":"2016-12-02T12:16:29Z","updated_at":"2017-01-16T06:20:22Z","pushed_at":"2017-05-10T04:48:20Z","git_url":"git://github.com/Metatavu/kunta-api-server.git","ssh_url":"git@github.com:Metatavu/kunta-api-server.git","clone_url":"https://github.com/Metatavu/kunta-api-server.git","svn_url":"https://github.com/Metatavu/kunta-api-server","homepage":null,"size":3507,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/297"},"html":{"href":"https://github.com/Metatavu/kunta-api-server/pull/297"},"issue":{"href":"https://api.github.com/repos/Metatavu/kunta-api-server/issues/297"},"comments":{"href":"https://api.github.com/repos/Metatavu/kunta-api-server/issues/297/comments"},"review_comments":{"href":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/297/comments"},"review_comment":{"href":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Metatavu/kunta-api-server/pulls/297/commits"},"statuses":{"href":"https://api.github.com/repos/Metatavu/kunta-api-server/statuses/d5e92eac41c08ce839eb5f5119dcbc9be4060b79"}}}}
{"actor":{"display_login":"sonarq"}}