{"action":"created","comment":{"url":"https://api.github.com/repos/adsabs/vis-services/pulls/comments/42428450","id":42428450,"diff_hunk":"@@ -100,14 +106,16 @@ def post(self):\n     if 'max_groups' in solr_args:\n         del solr_args['max_groups']\n \n-    solr_args[\"rows\"] = min(int(solr_args.get(\"rows\", [current_app.config.get(\"VIS_SERVICE_PN_MAX_RECORDS\")])[0]), current_app.config.get(\"VIS_SERVICE_PN_MAX_RECORDS\"))\n+    data = solr_args[\"q\"]\n \n+    solr_args[\"rows\"] = min(int(solr_args.get(\"rows\", [current_app.config.get(\"VIS_SERVICE_PN_MAX_RECORDS\")])[0]), current_app.config.get(\"VIS_SERVICE_PN_MAX_RECORDS\"))\n     solr_args['fl'] = ['bibcode,title,first_author,year,citation_count,read_count,reference']\n     solr_args['wt'] ='json'\n+    solr_args['q'] = '*:*'\n \n     headers = {'X-Forwarded-Authorization' : request.headers.get('Authorization')}\n \n-    response = client().get(current_app.config.get(\"VIS_SERVICE_SOLR_PATH\") , params = solr_args, headers=headers)\n+    response = client().post(current_app.config.get(VIS_SERVICE_BIGQUERY_PATH), params = solr_args, headers=headers, data=data)","path":"views.py","position":43,"original_position":52,"commit_id":"1040a67f117af2eac097f0c11796053b631a0218","original_commit_id":"8e6a84e2c8f9569849921eef0fb9144fbab0adb9","user":{"login":"romanchyla","id":411794,"avatar_url":"https://avatars.githubusercontent.com/u/411794?v=3","gravatar_id":"","url":"https://api.github.com/users/romanchyla","html_url":"https://github.com/romanchyla","followers_url":"https://api.github.com/users/romanchyla/followers","following_url":"https://api.github.com/users/romanchyla/following{/other_user}","gists_url":"https://api.github.com/users/romanchyla/gists{/gist_id}","starred_url":"https://api.github.com/users/romanchyla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanchyla/subscriptions","organizations_url":"https://api.github.com/users/romanchyla/orgs","repos_url":"https://api.github.com/users/romanchyla/repos","events_url":"https://api.github.com/users/romanchyla/events{/privacy}","received_events_url":"https://api.github.com/users/romanchyla/received_events","type":"User","site_admin":false},"body":"you will have to add few parameters (for security sake), the bigquery works as:\r\n\r\n```\r\nrequests.post('http://localhost:5000/bigquery', params={'q':'*:*', 'wt':'json', 'fl':'bibcode', 'fq': '{!bitset}'}, data='bibcode\\n1907AN....174...59.\\n1908PA.....16..445.\\n1989LNP...334..242S')\r\n```\r\n\r\nso, the 'fq' should be set; and I think you should check that data contains \\n delimited list of bibcodes only (not bibcode:xxxxx, but xxxxx)","created_at":"2015-10-19T21:29:13Z","updated_at":"2015-10-19T21:29:13Z","html_url":"https://github.com/adsabs/vis-services/pull/11#discussion_r42428450","pull_request_url":"https://api.github.com/repos/adsabs/vis-services/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/adsabs/vis-services/pulls/comments/42428450"},"html":{"href":"https://github.com/adsabs/vis-services/pull/11#discussion_r42428450"},"pull_request":{"href":"https://api.github.com/repos/adsabs/vis-services/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/adsabs/vis-services/pulls/11","id":48128059,"html_url":"https://github.com/adsabs/vis-services/pull/11","diff_url":"https://github.com/adsabs/vis-services/pull/11.diff","patch_url":"https://github.com/adsabs/vis-services/pull/11.patch","issue_url":"https://api.github.com/repos/adsabs/vis-services/issues/11","number":11,"state":"open","locked":false,"title":"networks now contact bigquery","user":{"login":"aholachek","id":3680488,"avatar_url":"https://avatars.githubusercontent.com/u/3680488?v=3","gravatar_id":"","url":"https://api.github.com/users/aholachek","html_url":"https://github.com/aholachek","followers_url":"https://api.github.com/users/aholachek/followers","following_url":"https://api.github.com/users/aholachek/following{/other_user}","gists_url":"https://api.github.com/users/aholachek/gists{/gist_id}","starred_url":"https://api.github.com/users/aholachek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aholachek/subscriptions","organizations_url":"https://api.github.com/users/aholachek/orgs","repos_url":"https://api.github.com/users/aholachek/repos","events_url":"https://api.github.com/users/aholachek/events{/privacy}","received_events_url":"https://api.github.com/users/aholachek/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-19T21:20:31Z","updated_at":"2015-10-19T21:29:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85d4144c9168c8b1091d3cd63ce44fcc5d57bff5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/adsabs/vis-services/pulls/11/commits","review_comments_url":"https://api.github.com/repos/adsabs/vis-services/pulls/11/comments","review_comment_url":"https://api.github.com/repos/adsabs/vis-services/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adsabs/vis-services/issues/11/comments","statuses_url":"https://api.github.com/repos/adsabs/vis-services/statuses/1040a67f117af2eac097f0c11796053b631a0218","head":{"label":"adsabs:bigquery","ref":"bigquery","sha":"1040a67f117af2eac097f0c11796053b631a0218","user":{"login":"adsabs","id":1004839,"avatar_url":"https://avatars.githubusercontent.com/u/1004839?v=3","gravatar_id":"","url":"https://api.github.com/users/adsabs","html_url":"https://github.com/adsabs","followers_url":"https://api.github.com/users/adsabs/followers","following_url":"https://api.github.com/users/adsabs/following{/other_user}","gists_url":"https://api.github.com/users/adsabs/gists{/gist_id}","starred_url":"https://api.github.com/users/adsabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adsabs/subscriptions","organizations_url":"https://api.github.com/users/adsabs/orgs","repos_url":"https://api.github.com/users/adsabs/repos","events_url":"https://api.github.com/users/adsabs/events{/privacy}","received_events_url":"https://api.github.com/users/adsabs/received_events","type":"Organization","site_admin":false},"repo":{"id":26227066,"name":"vis-services","full_name":"adsabs/vis-services","owner":{"login":"adsabs","id":1004839,"avatar_url":"https://avatars.githubusercontent.com/u/1004839?v=3","gravatar_id":"","url":"https://api.github.com/users/adsabs","html_url":"https://github.com/adsabs","followers_url":"https://api.github.com/users/adsabs/followers","following_url":"https://api.github.com/users/adsabs/following{/other_user}","gists_url":"https://api.github.com/users/adsabs/gists{/gist_id}","starred_url":"https://api.github.com/users/adsabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adsabs/subscriptions","organizations_url":"https://api.github.com/users/adsabs/orgs","repos_url":"https://api.github.com/users/adsabs/repos","events_url":"https://api.github.com/users/adsabs/events{/privacy}","received_events_url":"https://api.github.com/users/adsabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/adsabs/vis-services","description":"","fork":false,"url":"https://api.github.com/repos/adsabs/vis-services","forks_url":"https://api.github.com/repos/adsabs/vis-services/forks","keys_url":"https://api.github.com/repos/adsabs/vis-services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adsabs/vis-services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adsabs/vis-services/teams","hooks_url":"https://api.github.com/repos/adsabs/vis-services/hooks","issue_events_url":"https://api.github.com/repos/adsabs/vis-services/issues/events{/number}","events_url":"https://api.github.com/repos/adsabs/vis-services/events","assignees_url":"https://api.github.com/repos/adsabs/vis-services/assignees{/user}","branches_url":"https://api.github.com/repos/adsabs/vis-services/branches{/branch}","tags_url":"https://api.github.com/repos/adsabs/vis-services/tags","blobs_url":"https://api.github.com/repos/adsabs/vis-services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adsabs/vis-services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adsabs/vis-services/git/refs{/sha}","trees_url":"https://api.github.com/repos/adsabs/vis-services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adsabs/vis-services/statuses/{sha}","languages_url":"https://api.github.com/repos/adsabs/vis-services/languages","stargazers_url":"https://api.github.com/repos/adsabs/vis-services/stargazers","contributors_url":"https://api.github.com/repos/adsabs/vis-services/contributors","subscribers_url":"https://api.github.com/repos/adsabs/vis-services/subscribers","subscription_url":"https://api.github.com/repos/adsabs/vis-services/subscription","commits_url":"https://api.github.com/repos/adsabs/vis-services/commits{/sha}","git_commits_url":"https://api.github.com/repos/adsabs/vis-services/git/commits{/sha}","comments_url":"https://api.github.com/repos/adsabs/vis-services/comments{/number}","issue_comment_url":"https://api.github.com/repos/adsabs/vis-services/issues/comments{/number}","contents_url":"https://api.github.com/repos/adsabs/vis-services/contents/{+path}","compare_url":"https://api.github.com/repos/adsabs/vis-services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adsabs/vis-services/merges","archive_url":"https://api.github.com/repos/adsabs/vis-services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adsabs/vis-services/downloads","issues_url":"https://api.github.com/repos/adsabs/vis-services/issues{/number}","pulls_url":"https://api.github.com/repos/adsabs/vis-services/pulls{/number}","milestones_url":"https://api.github.com/repos/adsabs/vis-services/milestones{/number}","notifications_url":"https://api.github.com/repos/adsabs/vis-services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adsabs/vis-services/labels{/name}","releases_url":"https://api.github.com/repos/adsabs/vis-services/releases{/id}","created_at":"2014-11-05T15:56:32Z","updated_at":"2015-02-24T21:54:07Z","pushed_at":"2015-10-19T21:28:42Z","git_url":"git://github.com/adsabs/vis-services.git","ssh_url":"git@github.com:adsabs/vis-services.git","clone_url":"https://github.com/adsabs/vis-services.git","svn_url":"https://github.com/adsabs/vis-services","homepage":null,"size":1473,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"adsabs:master","ref":"master","sha":"f421557a3015f51ca4d0854490beea09a886a354","user":{"login":"adsabs","id":1004839,"avatar_url":"https://avatars.githubusercontent.com/u/1004839?v=3","gravatar_id":"","url":"https://api.github.com/users/adsabs","html_url":"https://github.com/adsabs","followers_url":"https://api.github.com/users/adsabs/followers","following_url":"https://api.github.com/users/adsabs/following{/other_user}","gists_url":"https://api.github.com/users/adsabs/gists{/gist_id}","starred_url":"https://api.github.com/users/adsabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adsabs/subscriptions","organizations_url":"https://api.github.com/users/adsabs/orgs","repos_url":"https://api.github.com/users/adsabs/repos","events_url":"https://api.github.com/users/adsabs/events{/privacy}","received_events_url":"https://api.github.com/users/adsabs/received_events","type":"Organization","site_admin":false},"repo":{"id":26227066,"name":"vis-services","full_name":"adsabs/vis-services","owner":{"login":"adsabs","id":1004839,"avatar_url":"https://avatars.githubusercontent.com/u/1004839?v=3","gravatar_id":"","url":"https://api.github.com/users/adsabs","html_url":"https://github.com/adsabs","followers_url":"https://api.github.com/users/adsabs/followers","following_url":"https://api.github.com/users/adsabs/following{/other_user}","gists_url":"https://api.github.com/users/adsabs/gists{/gist_id}","starred_url":"https://api.github.com/users/adsabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adsabs/subscriptions","organizations_url":"https://api.github.com/users/adsabs/orgs","repos_url":"https://api.github.com/users/adsabs/repos","events_url":"https://api.github.com/users/adsabs/events{/privacy}","received_events_url":"https://api.github.com/users/adsabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/adsabs/vis-services","description":"","fork":false,"url":"https://api.github.com/repos/adsabs/vis-services","forks_url":"https://api.github.com/repos/adsabs/vis-services/forks","keys_url":"https://api.github.com/repos/adsabs/vis-services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adsabs/vis-services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adsabs/vis-services/teams","hooks_url":"https://api.github.com/repos/adsabs/vis-services/hooks","issue_events_url":"https://api.github.com/repos/adsabs/vis-services/issues/events{/number}","events_url":"https://api.github.com/repos/adsabs/vis-services/events","assignees_url":"https://api.github.com/repos/adsabs/vis-services/assignees{/user}","branches_url":"https://api.github.com/repos/adsabs/vis-services/branches{/branch}","tags_url":"https://api.github.com/repos/adsabs/vis-services/tags","blobs_url":"https://api.github.com/repos/adsabs/vis-services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adsabs/vis-services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adsabs/vis-services/git/refs{/sha}","trees_url":"https://api.github.com/repos/adsabs/vis-services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adsabs/vis-services/statuses/{sha}","languages_url":"https://api.github.com/repos/adsabs/vis-services/languages","stargazers_url":"https://api.github.com/repos/adsabs/vis-services/stargazers","contributors_url":"https://api.github.com/repos/adsabs/vis-services/contributors","subscribers_url":"https://api.github.com/repos/adsabs/vis-services/subscribers","subscription_url":"https://api.github.com/repos/adsabs/vis-services/subscription","commits_url":"https://api.github.com/repos/adsabs/vis-services/commits{/sha}","git_commits_url":"https://api.github.com/repos/adsabs/vis-services/git/commits{/sha}","comments_url":"https://api.github.com/repos/adsabs/vis-services/comments{/number}","issue_comment_url":"https://api.github.com/repos/adsabs/vis-services/issues/comments{/number}","contents_url":"https://api.github.com/repos/adsabs/vis-services/contents/{+path}","compare_url":"https://api.github.com/repos/adsabs/vis-services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adsabs/vis-services/merges","archive_url":"https://api.github.com/repos/adsabs/vis-services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adsabs/vis-services/downloads","issues_url":"https://api.github.com/repos/adsabs/vis-services/issues{/number}","pulls_url":"https://api.github.com/repos/adsabs/vis-services/pulls{/number}","milestones_url":"https://api.github.com/repos/adsabs/vis-services/milestones{/number}","notifications_url":"https://api.github.com/repos/adsabs/vis-services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adsabs/vis-services/labels{/name}","releases_url":"https://api.github.com/repos/adsabs/vis-services/releases{/id}","created_at":"2014-11-05T15:56:32Z","updated_at":"2015-02-24T21:54:07Z","pushed_at":"2015-10-19T21:28:42Z","git_url":"git://github.com/adsabs/vis-services.git","ssh_url":"git@github.com:adsabs/vis-services.git","clone_url":"https://github.com/adsabs/vis-services.git","svn_url":"https://github.com/adsabs/vis-services","homepage":null,"size":1473,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adsabs/vis-services/pulls/11"},"html":{"href":"https://github.com/adsabs/vis-services/pull/11"},"issue":{"href":"https://api.github.com/repos/adsabs/vis-services/issues/11"},"comments":{"href":"https://api.github.com/repos/adsabs/vis-services/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/adsabs/vis-services/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/adsabs/vis-services/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adsabs/vis-services/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/adsabs/vis-services/statuses/1040a67f117af2eac097f0c11796053b631a0218"}}}}