{"action":"created","comment":{"url":"https://api.github.com/repos/inspirehep/invenio-search/pulls/comments/45195144","id":45195144,"diff_hunk":"@@ -47,6 +47,17 @@ def test_empty_query(self):\n             \"match_all\": {}\n         })\n \n+    # Author queries\n+    def test_name_variations(self):\n+        from invenio_search.api import Query\n+        query_1 = Query(\"author: \\\"Jeffrey Goldstone\\\"\").search().recids\n+        query_2 = Query(\"author: \\\"J Goldstone\\\"\").search().recids\n+        query_3 = Query(\"author: \\\"Goldstone, Jeffrey\\\"\").search().recids\n+        query_4 = Query(\"author: \\\"Goldstone, J\\\"\").search().recids\n+        self.assertEqual(query_1,query_2)","path":"tests/test_elasticsearch_walker.py","position":11,"original_position":11,"commit_id":"43c025e68e614db9e250b9a3b99248561be49fc3","original_commit_id":"43c025e68e614db9e250b9a3b99248561be49fc3","user":{"login":"kaplun","id":119349,"avatar_url":"https://avatars.githubusercontent.com/u/119349?v=3","gravatar_id":"","url":"https://api.github.com/users/kaplun","html_url":"https://github.com/kaplun","followers_url":"https://api.github.com/users/kaplun/followers","following_url":"https://api.github.com/users/kaplun/following{/other_user}","gists_url":"https://api.github.com/users/kaplun/gists{/gist_id}","starred_url":"https://api.github.com/users/kaplun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaplun/subscriptions","organizations_url":"https://api.github.com/users/kaplun/orgs","repos_url":"https://api.github.com/users/kaplun/repos","events_url":"https://api.github.com/users/kaplun/events{/privacy}","received_events_url":"https://api.github.com/users/kaplun/received_events","type":"User","site_admin":false},"body":"Be careful to commas :-) Run autopep8/kwalitee.","created_at":"2015-11-18T12:55:39Z","updated_at":"2015-11-18T12:55:39Z","html_url":"https://github.com/inspirehep/invenio-search/pull/2#discussion_r45195144","pull_request_url":"https://api.github.com/repos/inspirehep/invenio-search/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/inspirehep/invenio-search/pulls/comments/45195144"},"html":{"href":"https://github.com/inspirehep/invenio-search/pull/2#discussion_r45195144"},"pull_request":{"href":"https://api.github.com/repos/inspirehep/invenio-search/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/inspirehep/invenio-search/pulls/2","id":49688568,"html_url":"https://github.com/inspirehep/invenio-search/pull/2","diff_url":"https://github.com/inspirehep/invenio-search/pull/2.diff","patch_url":"https://github.com/inspirehep/invenio-search/pull/2.patch","issue_url":"https://api.github.com/repos/inspirehep/invenio-search/issues/2","number":2,"state":"open","locked":false,"title":"elastic: Search enhanced author names","user":{"login":"Panos512","id":8779550,"avatar_url":"https://avatars.githubusercontent.com/u/8779550?v=3","gravatar_id":"","url":"https://api.github.com/users/Panos512","html_url":"https://github.com/Panos512","followers_url":"https://api.github.com/users/Panos512/followers","following_url":"https://api.github.com/users/Panos512/following{/other_user}","gists_url":"https://api.github.com/users/Panos512/gists{/gist_id}","starred_url":"https://api.github.com/users/Panos512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Panos512/subscriptions","organizations_url":"https://api.github.com/users/Panos512/orgs","repos_url":"https://api.github.com/users/Panos512/repos","events_url":"https://api.github.com/users/Panos512/events{/privacy}","received_events_url":"https://api.github.com/users/Panos512/received_events","type":"User","site_admin":false},"body":"* Returns a special query for 'author' keyword, including in the\r\n  search all the possible name variations of an author.\r\n\r\nSigned-off-by: Panos Paparrigopoulos <panos.paparrigopoulos@cern.ch>","created_at":"2015-11-04T13:33:35Z","updated_at":"2015-11-18T12:55:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cddd7d32c09b3b3646750b9791bd81a247681a80","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inspirehep/invenio-search/pulls/2/commits","review_comments_url":"https://api.github.com/repos/inspirehep/invenio-search/pulls/2/comments","review_comment_url":"https://api.github.com/repos/inspirehep/invenio-search/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inspirehep/invenio-search/issues/2/comments","statuses_url":"https://api.github.com/repos/inspirehep/invenio-search/statuses/43c025e68e614db9e250b9a3b99248561be49fc3","head":{"label":"Panos512:elastic_config","ref":"elastic_config","sha":"43c025e68e614db9e250b9a3b99248561be49fc3","user":{"login":"Panos512","id":8779550,"avatar_url":"https://avatars.githubusercontent.com/u/8779550?v=3","gravatar_id":"","url":"https://api.github.com/users/Panos512","html_url":"https://github.com/Panos512","followers_url":"https://api.github.com/users/Panos512/followers","following_url":"https://api.github.com/users/Panos512/following{/other_user}","gists_url":"https://api.github.com/users/Panos512/gists{/gist_id}","starred_url":"https://api.github.com/users/Panos512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Panos512/subscriptions","organizations_url":"https://api.github.com/users/Panos512/orgs","repos_url":"https://api.github.com/users/Panos512/repos","events_url":"https://api.github.com/users/Panos512/events{/privacy}","received_events_url":"https://api.github.com/users/Panos512/received_events","type":"User","site_admin":false},"repo":{"id":45038967,"name":"invenio-search","full_name":"Panos512/invenio-search","owner":{"login":"Panos512","id":8779550,"avatar_url":"https://avatars.githubusercontent.com/u/8779550?v=3","gravatar_id":"","url":"https://api.github.com/users/Panos512","html_url":"https://github.com/Panos512","followers_url":"https://api.github.com/users/Panos512/followers","following_url":"https://api.github.com/users/Panos512/following{/other_user}","gists_url":"https://api.github.com/users/Panos512/gists{/gist_id}","starred_url":"https://api.github.com/users/Panos512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Panos512/subscriptions","organizations_url":"https://api.github.com/users/Panos512/orgs","repos_url":"https://api.github.com/users/Panos512/repos","events_url":"https://api.github.com/users/Panos512/events{/privacy}","received_events_url":"https://api.github.com/users/Panos512/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Panos512/invenio-search","description":"Invenio module for information retrieval.","fork":true,"url":"https://api.github.com/repos/Panos512/invenio-search","forks_url":"https://api.github.com/repos/Panos512/invenio-search/forks","keys_url":"https://api.github.com/repos/Panos512/invenio-search/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Panos512/invenio-search/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Panos512/invenio-search/teams","hooks_url":"https://api.github.com/repos/Panos512/invenio-search/hooks","issue_events_url":"https://api.github.com/repos/Panos512/invenio-search/issues/events{/number}","events_url":"https://api.github.com/repos/Panos512/invenio-search/events","assignees_url":"https://api.github.com/repos/Panos512/invenio-search/assignees{/user}","branches_url":"https://api.github.com/repos/Panos512/invenio-search/branches{/branch}","tags_url":"https://api.github.com/repos/Panos512/invenio-search/tags","blobs_url":"https://api.github.com/repos/Panos512/invenio-search/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Panos512/invenio-search/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Panos512/invenio-search/git/refs{/sha}","trees_url":"https://api.github.com/repos/Panos512/invenio-search/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Panos512/invenio-search/statuses/{sha}","languages_url":"https://api.github.com/repos/Panos512/invenio-search/languages","stargazers_url":"https://api.github.com/repos/Panos512/invenio-search/stargazers","contributors_url":"https://api.github.com/repos/Panos512/invenio-search/contributors","subscribers_url":"https://api.github.com/repos/Panos512/invenio-search/subscribers","subscription_url":"https://api.github.com/repos/Panos512/invenio-search/subscription","commits_url":"https://api.github.com/repos/Panos512/invenio-search/commits{/sha}","git_commits_url":"https://api.github.com/repos/Panos512/invenio-search/git/commits{/sha}","comments_url":"https://api.github.com/repos/Panos512/invenio-search/comments{/number}","issue_comment_url":"https://api.github.com/repos/Panos512/invenio-search/issues/comments{/number}","contents_url":"https://api.github.com/repos/Panos512/invenio-search/contents/{+path}","compare_url":"https://api.github.com/repos/Panos512/invenio-search/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Panos512/invenio-search/merges","archive_url":"https://api.github.com/repos/Panos512/invenio-search/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Panos512/invenio-search/downloads","issues_url":"https://api.github.com/repos/Panos512/invenio-search/issues{/number}","pulls_url":"https://api.github.com/repos/Panos512/invenio-search/pulls{/number}","milestones_url":"https://api.github.com/repos/Panos512/invenio-search/milestones{/number}","notifications_url":"https://api.github.com/repos/Panos512/invenio-search/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Panos512/invenio-search/labels{/name}","releases_url":"https://api.github.com/repos/Panos512/invenio-search/releases{/id}","created_at":"2015-10-27T12:18:52Z","updated_at":"2015-10-27T12:18:54Z","pushed_at":"2015-11-17T13:54:04Z","git_url":"git://github.com/Panos512/invenio-search.git","ssh_url":"git@github.com:Panos512/invenio-search.git","clone_url":"https://github.com/Panos512/invenio-search.git","svn_url":"https://github.com/Panos512/invenio-search","homepage":"","size":3811,"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":"inspirehep:master","ref":"master","sha":"5550701cac68b7b3f21328b4ce8979ee88ead38d","user":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"repo":{"id":41092894,"name":"invenio-search","full_name":"inspirehep/invenio-search","owner":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inspirehep/invenio-search","description":"Invenio module for information retrieval.","fork":true,"url":"https://api.github.com/repos/inspirehep/invenio-search","forks_url":"https://api.github.com/repos/inspirehep/invenio-search/forks","keys_url":"https://api.github.com/repos/inspirehep/invenio-search/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspirehep/invenio-search/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspirehep/invenio-search/teams","hooks_url":"https://api.github.com/repos/inspirehep/invenio-search/hooks","issue_events_url":"https://api.github.com/repos/inspirehep/invenio-search/issues/events{/number}","events_url":"https://api.github.com/repos/inspirehep/invenio-search/events","assignees_url":"https://api.github.com/repos/inspirehep/invenio-search/assignees{/user}","branches_url":"https://api.github.com/repos/inspirehep/invenio-search/branches{/branch}","tags_url":"https://api.github.com/repos/inspirehep/invenio-search/tags","blobs_url":"https://api.github.com/repos/inspirehep/invenio-search/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspirehep/invenio-search/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspirehep/invenio-search/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspirehep/invenio-search/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspirehep/invenio-search/statuses/{sha}","languages_url":"https://api.github.com/repos/inspirehep/invenio-search/languages","stargazers_url":"https://api.github.com/repos/inspirehep/invenio-search/stargazers","contributors_url":"https://api.github.com/repos/inspirehep/invenio-search/contributors","subscribers_url":"https://api.github.com/repos/inspirehep/invenio-search/subscribers","subscription_url":"https://api.github.com/repos/inspirehep/invenio-search/subscription","commits_url":"https://api.github.com/repos/inspirehep/invenio-search/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspirehep/invenio-search/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspirehep/invenio-search/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspirehep/invenio-search/issues/comments{/number}","contents_url":"https://api.github.com/repos/inspirehep/invenio-search/contents/{+path}","compare_url":"https://api.github.com/repos/inspirehep/invenio-search/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspirehep/invenio-search/merges","archive_url":"https://api.github.com/repos/inspirehep/invenio-search/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspirehep/invenio-search/downloads","issues_url":"https://api.github.com/repos/inspirehep/invenio-search/issues{/number}","pulls_url":"https://api.github.com/repos/inspirehep/invenio-search/pulls{/number}","milestones_url":"https://api.github.com/repos/inspirehep/invenio-search/milestones{/number}","notifications_url":"https://api.github.com/repos/inspirehep/invenio-search/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspirehep/invenio-search/labels{/name}","releases_url":"https://api.github.com/repos/inspirehep/invenio-search/releases{/id}","created_at":"2015-08-20T11:49:14Z","updated_at":"2015-08-20T11:49:14Z","pushed_at":"2015-11-17T13:54:04Z","git_url":"git://github.com/inspirehep/invenio-search.git","ssh_url":"git@github.com:inspirehep/invenio-search.git","clone_url":"https://github.com/inspirehep/invenio-search.git","svn_url":"https://github.com/inspirehep/invenio-search","homepage":"","size":4066,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspirehep/invenio-search/pulls/2"},"html":{"href":"https://github.com/inspirehep/invenio-search/pull/2"},"issue":{"href":"https://api.github.com/repos/inspirehep/invenio-search/issues/2"},"comments":{"href":"https://api.github.com/repos/inspirehep/invenio-search/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/inspirehep/invenio-search/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/inspirehep/invenio-search/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inspirehep/invenio-search/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/inspirehep/invenio-search/statuses/43c025e68e614db9e250b9a3b99248561be49fc3"}}}}