{"action":"closed","number":111,"pull_request":{"url":"https://api.github.com/repos/loklak/loklak_server/pulls/111","id":42420776,"html_url":"https://github.com/loklak/loklak_server/pull/111","diff_url":"https://github.com/loklak/loklak_server/pull/111.diff","patch_url":"https://github.com/loklak/loklak_server/pull/111.patch","issue_url":"https://api.github.com/repos/loklak/loklak_server/issues/111","number":111,"state":"closed","locked":false,"title":"Fix search by id throwing SearchPhaseExecutionException","user":{"login":"zyzo","id":6483446,"avatar_url":"https://avatars.githubusercontent.com/u/6483446?v=3","gravatar_id":"","url":"https://api.github.com/users/zyzo","html_url":"https://github.com/zyzo","followers_url":"https://api.github.com/users/zyzo/followers","following_url":"https://api.github.com/users/zyzo/following{/other_user}","gists_url":"https://api.github.com/users/zyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/zyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyzo/subscriptions","organizations_url":"https://api.github.com/users/zyzo/orgs","repos_url":"https://api.github.com/users/zyzo/repos","events_url":"https://api.github.com/users/zyzo/events{/privacy}","received_events_url":"https://api.github.com/users/zyzo/received_events","type":"User","site_admin":false},"body":"This PR aims to fix the problem reported in chat: \r\n```text\r\n@Orbiter I can't perform search by id http://loklak.org/api/search.json?q=id:632002532013834240 (previously worked), any idea ?\r\nThe message with id 632002532013834240 does exist http://loklak.org/api/search.json?q=FOSSASIA\r\nlocal stack trace gives me this\r\norg.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[szO3d8LWRS63ioD6FSWv8A][messages][0]: SearchParseException[[messages][0]: query[id_str:[],from[0],size[100]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":100,\"query\":{\"term\":{\"id_str\":[\"626616095475113984\"]}},\"sort\":[{\"created_at\":{\"order\":\"desc\"}}]}]]]; nested: ElasticsearchParseException[Expected field name but got END_ARRAY \"id_str\"]; }{[szO3d8LWRS63ioD6FSWv8A][messages][1]: SearchParseException[[messages][1]: query[id_str:[],from[0],size[100]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":100,\"query\":{\"term\":{\"id_str\":[\"626616095475113984\"]}},\"sort\":[{\"created_at\":{\"order\":\"desc\"}}]}]]]; nested: ElasticsearchParseException[Expected field name but got END_ARRAY \"id_str\"]; }{[szO3d8LWRS63ioD6FSWv8A][messages][2]: SearchParseException[[messages][2]: query[id_str:[],from[0],size[100]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":100,\"query\":{\"term\":{\"id_str\":[\"626616095475113984\"]}},\"sort\":[{\"created_at\":{\"order\":\"desc\"}}]}]]]; nested: ElasticsearchParseException[Expected field name but got END_ARRAY \"id_str\"]; }{[szO3d8LWRS63ioD6FSWv8A][messages][3]: SearchParseException[[messages][3]: query[id_str:[],from[0],size[100]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":100,\"query\":{\"term\":{\"id_str\":[\"626616095475113984\"]}},\"sort\":[{\"created_at\":{\"order\":\"desc\"}}]}]]]; nested: ElasticsearchParseException[Expected field name but got END_ARRAY \"id_str\"]; }{[szO3d8LWRS63ioD6FSWv8A][messages][4]: SearchParseException[[messages][4]: query[id_str:[],from[0],size[100]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":100,\"query\":{\"term\":{\"id_str\":[\"626616095475113984\"]}},\"sort\":[{\"created_at\":{\"order\":\"desc\"}}]}]]]; nested: ElasticsearchParseException[Expected field name but got END_ARRAY \"id_str\"]; }{[szO3d8LWRS63ioD6FSWv8A][messages][5]: SearchParseException[[messages][5]: query[id_str:[],from[0],size[100]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":100,\"query\":{\"term\":{\"id_str\":[\"626616095475113984\"]}},\"sort\":[{\"created_at\":{\"order\":\"desc\"}}]}]]]; nested: ElasticsearchParseException[Expected field name but got END_ARRAY \"id_str\"]; }{[szO3d8LWRS63ioD6FSWv8A][messages][6]: SearchParseException[[messages][6]: query[id_str:[],from[0],size[100]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":100,\"query\":{\"term\":{\"id_str\":[\"626616095475113984\"]}},\"sort\":[{\"created_at\":{\"order\":\"desc\"}}]}]]]; nested: ElasticsearchParseException[Expected field name but got END_ARRAY \"id_str\"]; }{[szO3d8LWRS63ioD6FSWv8A][messages][7]: SearchParseException[[messages][7]: query[id_str:[],from[0],size[100]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":100,\"query\":{\"term\":{\"id_str\":[\"626616095475113984\"]}},\"sort\":[{\"created_at\":{\"order\":\"desc\"}}]}]]]; nested: ElasticsearchParseException[Expected field name but got END_ARRAY \"id_str\"]; }\r\n    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:237)\r\n    at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$1.onFailure(TransportSearchTypeAction.java:183)\r\n    at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:565)\r\n    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n    at java.lang.Thread.run(Thread.java:745)\r\n```\r\n\r\nThe query added is term query but the value is an array, causing parse error.","created_at":"2015-08-14T03:13:34Z","updated_at":"2015-08-14T03:16:55Z","closed_at":"2015-08-14T03:16:55Z","merged_at":"2015-08-14T03:16:55Z","merge_commit_sha":"c9d3e8f6b83a6698f6fc4fb92afe34fed57a8a2a","assignee":{"login":"zyzo","id":6483446,"avatar_url":"https://avatars.githubusercontent.com/u/6483446?v=3","gravatar_id":"","url":"https://api.github.com/users/zyzo","html_url":"https://github.com/zyzo","followers_url":"https://api.github.com/users/zyzo/followers","following_url":"https://api.github.com/users/zyzo/following{/other_user}","gists_url":"https://api.github.com/users/zyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/zyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyzo/subscriptions","organizations_url":"https://api.github.com/users/zyzo/orgs","repos_url":"https://api.github.com/users/zyzo/repos","events_url":"https://api.github.com/users/zyzo/events{/privacy}","received_events_url":"https://api.github.com/users/zyzo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/loklak/loklak_server/pulls/111/commits","review_comments_url":"https://api.github.com/repos/loklak/loklak_server/pulls/111/comments","review_comment_url":"https://api.github.com/repos/loklak/loklak_server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/loklak/loklak_server/issues/111/comments","statuses_url":"https://api.github.com/repos/loklak/loklak_server/statuses/690192ed0cb10ab951e26dbe43f5396ddd6b29fd","head":{"label":"loklak:fix-search-by-id","ref":"fix-search-by-id","sha":"690192ed0cb10ab951e26dbe43f5396ddd6b29fd","user":{"login":"loklak","id":11370631,"avatar_url":"https://avatars.githubusercontent.com/u/11370631?v=3","gravatar_id":"","url":"https://api.github.com/users/loklak","html_url":"https://github.com/loklak","followers_url":"https://api.github.com/users/loklak/followers","following_url":"https://api.github.com/users/loklak/following{/other_user}","gists_url":"https://api.github.com/users/loklak/gists{/gist_id}","starred_url":"https://api.github.com/users/loklak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loklak/subscriptions","organizations_url":"https://api.github.com/users/loklak/orgs","repos_url":"https://api.github.com/users/loklak/repos","events_url":"https://api.github.com/users/loklak/events{/privacy}","received_events_url":"https://api.github.com/users/loklak/received_events","type":"Organization","site_admin":false},"repo":{"id":32751172,"name":"loklak_server","full_name":"loklak/loklak_server","owner":{"login":"loklak","id":11370631,"avatar_url":"https://avatars.githubusercontent.com/u/11370631?v=3","gravatar_id":"","url":"https://api.github.com/users/loklak","html_url":"https://github.com/loklak","followers_url":"https://api.github.com/users/loklak/followers","following_url":"https://api.github.com/users/loklak/following{/other_user}","gists_url":"https://api.github.com/users/loklak/gists{/gist_id}","starred_url":"https://api.github.com/users/loklak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loklak/subscriptions","organizations_url":"https://api.github.com/users/loklak/orgs","repos_url":"https://api.github.com/users/loklak/repos","events_url":"https://api.github.com/users/loklak/events{/privacy}","received_events_url":"https://api.github.com/users/loklak/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/loklak/loklak_server","description":"Distributed message search server to anonymously collect, share, dump and index tweet search results.","fork":false,"url":"https://api.github.com/repos/loklak/loklak_server","forks_url":"https://api.github.com/repos/loklak/loklak_server/forks","keys_url":"https://api.github.com/repos/loklak/loklak_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loklak/loklak_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loklak/loklak_server/teams","hooks_url":"https://api.github.com/repos/loklak/loklak_server/hooks","issue_events_url":"https://api.github.com/repos/loklak/loklak_server/issues/events{/number}","events_url":"https://api.github.com/repos/loklak/loklak_server/events","assignees_url":"https://api.github.com/repos/loklak/loklak_server/assignees{/user}","branches_url":"https://api.github.com/repos/loklak/loklak_server/branches{/branch}","tags_url":"https://api.github.com/repos/loklak/loklak_server/tags","blobs_url":"https://api.github.com/repos/loklak/loklak_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loklak/loklak_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loklak/loklak_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/loklak/loklak_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loklak/loklak_server/statuses/{sha}","languages_url":"https://api.github.com/repos/loklak/loklak_server/languages","stargazers_url":"https://api.github.com/repos/loklak/loklak_server/stargazers","contributors_url":"https://api.github.com/repos/loklak/loklak_server/contributors","subscribers_url":"https://api.github.com/repos/loklak/loklak_server/subscribers","subscription_url":"https://api.github.com/repos/loklak/loklak_server/subscription","commits_url":"https://api.github.com/repos/loklak/loklak_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/loklak/loklak_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/loklak/loklak_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/loklak/loklak_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/loklak/loklak_server/contents/{+path}","compare_url":"https://api.github.com/repos/loklak/loklak_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loklak/loklak_server/merges","archive_url":"https://api.github.com/repos/loklak/loklak_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loklak/loklak_server/downloads","issues_url":"https://api.github.com/repos/loklak/loklak_server/issues{/number}","pulls_url":"https://api.github.com/repos/loklak/loklak_server/pulls{/number}","milestones_url":"https://api.github.com/repos/loklak/loklak_server/milestones{/number}","notifications_url":"https://api.github.com/repos/loklak/loklak_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loklak/loklak_server/labels{/name}","releases_url":"https://api.github.com/repos/loklak/loklak_server/releases{/id}","created_at":"2015-03-23T18:32:59Z","updated_at":"2015-08-08T08:22:39Z","pushed_at":"2015-08-14T03:16:55Z","git_url":"git://github.com/loklak/loklak_server.git","ssh_url":"git@github.com:loklak/loklak_server.git","clone_url":"https://github.com/loklak/loklak_server.git","svn_url":"https://github.com/loklak/loklak_server","homepage":"http://loklak.org","size":91228,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":26,"forks":11,"open_issues":26,"watchers":5,"default_branch":"master"}},"base":{"label":"loklak:master","ref":"master","sha":"ca0ee3c25444ef992979f25b16507d5e365066e8","user":{"login":"loklak","id":11370631,"avatar_url":"https://avatars.githubusercontent.com/u/11370631?v=3","gravatar_id":"","url":"https://api.github.com/users/loklak","html_url":"https://github.com/loklak","followers_url":"https://api.github.com/users/loklak/followers","following_url":"https://api.github.com/users/loklak/following{/other_user}","gists_url":"https://api.github.com/users/loklak/gists{/gist_id}","starred_url":"https://api.github.com/users/loklak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loklak/subscriptions","organizations_url":"https://api.github.com/users/loklak/orgs","repos_url":"https://api.github.com/users/loklak/repos","events_url":"https://api.github.com/users/loklak/events{/privacy}","received_events_url":"https://api.github.com/users/loklak/received_events","type":"Organization","site_admin":false},"repo":{"id":32751172,"name":"loklak_server","full_name":"loklak/loklak_server","owner":{"login":"loklak","id":11370631,"avatar_url":"https://avatars.githubusercontent.com/u/11370631?v=3","gravatar_id":"","url":"https://api.github.com/users/loklak","html_url":"https://github.com/loklak","followers_url":"https://api.github.com/users/loklak/followers","following_url":"https://api.github.com/users/loklak/following{/other_user}","gists_url":"https://api.github.com/users/loklak/gists{/gist_id}","starred_url":"https://api.github.com/users/loklak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loklak/subscriptions","organizations_url":"https://api.github.com/users/loklak/orgs","repos_url":"https://api.github.com/users/loklak/repos","events_url":"https://api.github.com/users/loklak/events{/privacy}","received_events_url":"https://api.github.com/users/loklak/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/loklak/loklak_server","description":"Distributed message search server to anonymously collect, share, dump and index tweet search results.","fork":false,"url":"https://api.github.com/repos/loklak/loklak_server","forks_url":"https://api.github.com/repos/loklak/loklak_server/forks","keys_url":"https://api.github.com/repos/loklak/loklak_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loklak/loklak_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loklak/loklak_server/teams","hooks_url":"https://api.github.com/repos/loklak/loklak_server/hooks","issue_events_url":"https://api.github.com/repos/loklak/loklak_server/issues/events{/number}","events_url":"https://api.github.com/repos/loklak/loklak_server/events","assignees_url":"https://api.github.com/repos/loklak/loklak_server/assignees{/user}","branches_url":"https://api.github.com/repos/loklak/loklak_server/branches{/branch}","tags_url":"https://api.github.com/repos/loklak/loklak_server/tags","blobs_url":"https://api.github.com/repos/loklak/loklak_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loklak/loklak_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loklak/loklak_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/loklak/loklak_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loklak/loklak_server/statuses/{sha}","languages_url":"https://api.github.com/repos/loklak/loklak_server/languages","stargazers_url":"https://api.github.com/repos/loklak/loklak_server/stargazers","contributors_url":"https://api.github.com/repos/loklak/loklak_server/contributors","subscribers_url":"https://api.github.com/repos/loklak/loklak_server/subscribers","subscription_url":"https://api.github.com/repos/loklak/loklak_server/subscription","commits_url":"https://api.github.com/repos/loklak/loklak_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/loklak/loklak_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/loklak/loklak_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/loklak/loklak_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/loklak/loklak_server/contents/{+path}","compare_url":"https://api.github.com/repos/loklak/loklak_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loklak/loklak_server/merges","archive_url":"https://api.github.com/repos/loklak/loklak_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loklak/loklak_server/downloads","issues_url":"https://api.github.com/repos/loklak/loklak_server/issues{/number}","pulls_url":"https://api.github.com/repos/loklak/loklak_server/pulls{/number}","milestones_url":"https://api.github.com/repos/loklak/loklak_server/milestones{/number}","notifications_url":"https://api.github.com/repos/loklak/loklak_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loklak/loklak_server/labels{/name}","releases_url":"https://api.github.com/repos/loklak/loklak_server/releases{/id}","created_at":"2015-03-23T18:32:59Z","updated_at":"2015-08-08T08:22:39Z","pushed_at":"2015-08-14T03:16:55Z","git_url":"git://github.com/loklak/loklak_server.git","ssh_url":"git@github.com:loklak/loklak_server.git","clone_url":"https://github.com/loklak/loklak_server.git","svn_url":"https://github.com/loklak/loklak_server","homepage":"http://loklak.org","size":91228,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":26,"forks":11,"open_issues":26,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/loklak/loklak_server/pulls/111"},"html":{"href":"https://github.com/loklak/loklak_server/pull/111"},"issue":{"href":"https://api.github.com/repos/loklak/loklak_server/issues/111"},"comments":{"href":"https://api.github.com/repos/loklak/loklak_server/issues/111/comments"},"review_comments":{"href":"https://api.github.com/repos/loklak/loklak_server/pulls/111/comments"},"review_comment":{"href":"https://api.github.com/repos/loklak/loklak_server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/loklak/loklak_server/pulls/111/commits"},"statuses":{"href":"https://api.github.com/repos/loklak/loklak_server/statuses/690192ed0cb10ab951e26dbe43f5396ddd6b29fd"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"zyzo","id":6483446,"avatar_url":"https://avatars.githubusercontent.com/u/6483446?v=3","gravatar_id":"","url":"https://api.github.com/users/zyzo","html_url":"https://github.com/zyzo","followers_url":"https://api.github.com/users/zyzo/followers","following_url":"https://api.github.com/users/zyzo/following{/other_user}","gists_url":"https://api.github.com/users/zyzo/gists{/gist_id}","starred_url":"https://api.github.com/users/zyzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyzo/subscriptions","organizations_url":"https://api.github.com/users/zyzo/orgs","repos_url":"https://api.github.com/users/zyzo/repos","events_url":"https://api.github.com/users/zyzo/events{/privacy}","received_events_url":"https://api.github.com/users/zyzo/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":3,"additions":2,"deletions":2,"changed_files":1}}