{"action":"created","comment":{"url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/comments/55221450","id":55221450,"diff_hunk":"@@ -52,3 +53,19 @@ def run(delayed, concurrency):\n     else:\n         click.secho(\"Indexing records...\", fg='green')\n         RecordIndexer().process_bulk_queue()\n+\n+\n+@index.command()\n+@click.argument('pid_type')\n+@click.option('-i', '--index', default=None, help=\"the index name.\")\n+@click.option('-d', '--doctype', default=None, help=\"the doc_type.\")","path":"invenio_indexer/cli.py","position":17,"original_position":17,"commit_id":"3df2d086be8e787e0a06d4ad48187783cbf8445b","original_commit_id":"3df2d086be8e787e0a06d4ad48187783cbf8445b","user":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"body":"`--doctype` vs `--doc-type`\r\n\r\n`help='Specify the document type.'`","created_at":"2016-03-07T15:45:29Z","updated_at":"2016-03-07T15:45:29Z","html_url":"https://github.com/inveniosoftware/invenio-indexer/pull/9#discussion_r55221450","pull_request_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/comments/55221450"},"html":{"href":"https://github.com/inveniosoftware/invenio-indexer/pull/9#discussion_r55221450"},"pull_request":{"href":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/9","id":61247825,"html_url":"https://github.com/inveniosoftware/invenio-indexer/pull/9","diff_url":"https://github.com/inveniosoftware/invenio-indexer/pull/9.diff","patch_url":"https://github.com/inveniosoftware/invenio-indexer/pull/9.patch","issue_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/issues/9","number":9,"state":"open","locked":false,"title":"cli: reindex function addition","user":{"login":"hachreak","id":377047,"avatar_url":"https://avatars.githubusercontent.com/u/377047?v=3","gravatar_id":"","url":"https://api.github.com/users/hachreak","html_url":"https://github.com/hachreak","followers_url":"https://api.github.com/users/hachreak/followers","following_url":"https://api.github.com/users/hachreak/following{/other_user}","gists_url":"https://api.github.com/users/hachreak/gists{/gist_id}","starred_url":"https://api.github.com/users/hachreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hachreak/subscriptions","organizations_url":"https://api.github.com/users/hachreak/orgs","repos_url":"https://api.github.com/users/hachreak/repos","events_url":"https://api.github.com/users/hachreak/events{/privacy}","received_events_url":"https://api.github.com/users/hachreak/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>\r\nCo-authored-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>","created_at":"2016-03-01T14:17:35Z","updated_at":"2016-03-07T15:45:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2566a32394569d13546025125a4a51572caf9c12","assignee":{"login":"hachreak","id":377047,"avatar_url":"https://avatars.githubusercontent.com/u/377047?v=3","gravatar_id":"","url":"https://api.github.com/users/hachreak","html_url":"https://github.com/hachreak","followers_url":"https://api.github.com/users/hachreak/followers","following_url":"https://api.github.com/users/hachreak/following{/other_user}","gists_url":"https://api.github.com/users/hachreak/gists{/gist_id}","starred_url":"https://api.github.com/users/hachreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hachreak/subscriptions","organizations_url":"https://api.github.com/users/hachreak/orgs","repos_url":"https://api.github.com/users/hachreak/repos","events_url":"https://api.github.com/users/hachreak/events{/privacy}","received_events_url":"https://api.github.com/users/hachreak/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/milestones/1","html_url":"https://github.com/inveniosoftware/invenio-indexer/milestones/v1.0.0","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/milestones/1/labels","id":1497360,"number":1,"title":"v1.0.0","description":"","creator":{"login":"lnielsen","id":1698163,"avatar_url":"https://avatars.githubusercontent.com/u/1698163?v=3","gravatar_id":"","url":"https://api.github.com/users/lnielsen","html_url":"https://github.com/lnielsen","followers_url":"https://api.github.com/users/lnielsen/followers","following_url":"https://api.github.com/users/lnielsen/following{/other_user}","gists_url":"https://api.github.com/users/lnielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/lnielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lnielsen/subscriptions","organizations_url":"https://api.github.com/users/lnielsen/orgs","repos_url":"https://api.github.com/users/lnielsen/repos","events_url":"https://api.github.com/users/lnielsen/events{/privacy}","received_events_url":"https://api.github.com/users/lnielsen/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":7,"state":"open","created_at":"2016-01-11T14:17:22Z","updated_at":"2016-03-02T10:36:31Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/9/commits","review_comments_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/9/comments","review_comment_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/issues/9/comments","statuses_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/statuses/3df2d086be8e787e0a06d4ad48187783cbf8445b","head":{"label":"hachreak:cli_reindex","ref":"cli_reindex","sha":"3df2d086be8e787e0a06d4ad48187783cbf8445b","user":{"login":"hachreak","id":377047,"avatar_url":"https://avatars.githubusercontent.com/u/377047?v=3","gravatar_id":"","url":"https://api.github.com/users/hachreak","html_url":"https://github.com/hachreak","followers_url":"https://api.github.com/users/hachreak/followers","following_url":"https://api.github.com/users/hachreak/following{/other_user}","gists_url":"https://api.github.com/users/hachreak/gists{/gist_id}","starred_url":"https://api.github.com/users/hachreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hachreak/subscriptions","organizations_url":"https://api.github.com/users/hachreak/orgs","repos_url":"https://api.github.com/users/hachreak/repos","events_url":"https://api.github.com/users/hachreak/events{/privacy}","received_events_url":"https://api.github.com/users/hachreak/received_events","type":"User","site_admin":false},"repo":{"id":49718462,"name":"invenio-indexer","full_name":"hachreak/invenio-indexer","owner":{"login":"hachreak","id":377047,"avatar_url":"https://avatars.githubusercontent.com/u/377047?v=3","gravatar_id":"","url":"https://api.github.com/users/hachreak","html_url":"https://github.com/hachreak","followers_url":"https://api.github.com/users/hachreak/followers","following_url":"https://api.github.com/users/hachreak/following{/other_user}","gists_url":"https://api.github.com/users/hachreak/gists{/gist_id}","starred_url":"https://api.github.com/users/hachreak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hachreak/subscriptions","organizations_url":"https://api.github.com/users/hachreak/orgs","repos_url":"https://api.github.com/users/hachreak/repos","events_url":"https://api.github.com/users/hachreak/events{/privacy}","received_events_url":"https://api.github.com/users/hachreak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hachreak/invenio-indexer","description":"Record indexer for Invenio.","fork":true,"url":"https://api.github.com/repos/hachreak/invenio-indexer","forks_url":"https://api.github.com/repos/hachreak/invenio-indexer/forks","keys_url":"https://api.github.com/repos/hachreak/invenio-indexer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hachreak/invenio-indexer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hachreak/invenio-indexer/teams","hooks_url":"https://api.github.com/repos/hachreak/invenio-indexer/hooks","issue_events_url":"https://api.github.com/repos/hachreak/invenio-indexer/issues/events{/number}","events_url":"https://api.github.com/repos/hachreak/invenio-indexer/events","assignees_url":"https://api.github.com/repos/hachreak/invenio-indexer/assignees{/user}","branches_url":"https://api.github.com/repos/hachreak/invenio-indexer/branches{/branch}","tags_url":"https://api.github.com/repos/hachreak/invenio-indexer/tags","blobs_url":"https://api.github.com/repos/hachreak/invenio-indexer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hachreak/invenio-indexer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hachreak/invenio-indexer/git/refs{/sha}","trees_url":"https://api.github.com/repos/hachreak/invenio-indexer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hachreak/invenio-indexer/statuses/{sha}","languages_url":"https://api.github.com/repos/hachreak/invenio-indexer/languages","stargazers_url":"https://api.github.com/repos/hachreak/invenio-indexer/stargazers","contributors_url":"https://api.github.com/repos/hachreak/invenio-indexer/contributors","subscribers_url":"https://api.github.com/repos/hachreak/invenio-indexer/subscribers","subscription_url":"https://api.github.com/repos/hachreak/invenio-indexer/subscription","commits_url":"https://api.github.com/repos/hachreak/invenio-indexer/commits{/sha}","git_commits_url":"https://api.github.com/repos/hachreak/invenio-indexer/git/commits{/sha}","comments_url":"https://api.github.com/repos/hachreak/invenio-indexer/comments{/number}","issue_comment_url":"https://api.github.com/repos/hachreak/invenio-indexer/issues/comments{/number}","contents_url":"https://api.github.com/repos/hachreak/invenio-indexer/contents/{+path}","compare_url":"https://api.github.com/repos/hachreak/invenio-indexer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hachreak/invenio-indexer/merges","archive_url":"https://api.github.com/repos/hachreak/invenio-indexer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hachreak/invenio-indexer/downloads","issues_url":"https://api.github.com/repos/hachreak/invenio-indexer/issues{/number}","pulls_url":"https://api.github.com/repos/hachreak/invenio-indexer/pulls{/number}","milestones_url":"https://api.github.com/repos/hachreak/invenio-indexer/milestones{/number}","notifications_url":"https://api.github.com/repos/hachreak/invenio-indexer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hachreak/invenio-indexer/labels{/name}","releases_url":"https://api.github.com/repos/hachreak/invenio-indexer/releases{/id}","deployments_url":"https://api.github.com/repos/hachreak/invenio-indexer/deployments","created_at":"2016-01-15T12:48:48Z","updated_at":"2016-01-15T12:48:50Z","pushed_at":"2016-03-07T11:44:37Z","git_url":"git://github.com/hachreak/invenio-indexer.git","ssh_url":"git@github.com:hachreak/invenio-indexer.git","clone_url":"https://github.com/hachreak/invenio-indexer.git","svn_url":"https://github.com/hachreak/invenio-indexer","homepage":"","size":43,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"inveniosoftware:master","ref":"master","sha":"439ffb7697328f78edd009b245aacb90b1f7e0a7","user":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":48982930,"name":"invenio-indexer","full_name":"inveniosoftware/invenio-indexer","owner":{"login":"inveniosoftware","id":1157480,"avatar_url":"https://avatars.githubusercontent.com/u/1157480?v=3","gravatar_id":"","url":"https://api.github.com/users/inveniosoftware","html_url":"https://github.com/inveniosoftware","followers_url":"https://api.github.com/users/inveniosoftware/followers","following_url":"https://api.github.com/users/inveniosoftware/following{/other_user}","gists_url":"https://api.github.com/users/inveniosoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/inveniosoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inveniosoftware/subscriptions","organizations_url":"https://api.github.com/users/inveniosoftware/orgs","repos_url":"https://api.github.com/users/inveniosoftware/repos","events_url":"https://api.github.com/users/inveniosoftware/events{/privacy}","received_events_url":"https://api.github.com/users/inveniosoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inveniosoftware/invenio-indexer","description":"Record indexer for Invenio.","fork":false,"url":"https://api.github.com/repos/inveniosoftware/invenio-indexer","forks_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/forks","keys_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/teams","hooks_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/hooks","issue_events_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/issues/events{/number}","events_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/events","assignees_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/assignees{/user}","branches_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/branches{/branch}","tags_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/tags","blobs_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/git/refs{/sha}","trees_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/statuses/{sha}","languages_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/languages","stargazers_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/stargazers","contributors_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/contributors","subscribers_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/subscribers","subscription_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/subscription","commits_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/commits{/sha}","git_commits_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/git/commits{/sha}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/comments{/number}","issue_comment_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/issues/comments{/number}","contents_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/contents/{+path}","compare_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/merges","archive_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/downloads","issues_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/issues{/number}","pulls_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls{/number}","milestones_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/milestones{/number}","notifications_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/labels{/name}","releases_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/releases{/id}","deployments_url":"https://api.github.com/repos/inveniosoftware/invenio-indexer/deployments","created_at":"2016-01-04T08:03:44Z","updated_at":"2016-01-11T14:03:52Z","pushed_at":"2016-03-07T11:44:38Z","git_url":"git://github.com/inveniosoftware/invenio-indexer.git","ssh_url":"git@github.com:inveniosoftware/invenio-indexer.git","clone_url":"https://github.com/inveniosoftware/invenio-indexer.git","svn_url":"https://github.com/inveniosoftware/invenio-indexer","homepage":"","size":41,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/9"},"html":{"href":"https://github.com/inveniosoftware/invenio-indexer/pull/9"},"issue":{"href":"https://api.github.com/repos/inveniosoftware/invenio-indexer/issues/9"},"comments":{"href":"https://api.github.com/repos/inveniosoftware/invenio-indexer/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inveniosoftware/invenio-indexer/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/inveniosoftware/invenio-indexer/statuses/3df2d086be8e787e0a06d4ad48187783cbf8445b"}}}}