{"action":"opened","number":128,"pull_request":{"url":"https://api.github.com/repos/textacular/textacular/pulls/128","id":268654412,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY4NjU0NDEy","html_url":"https://github.com/textacular/textacular/pull/128","diff_url":"https://github.com/textacular/textacular/pull/128.diff","patch_url":"https://github.com/textacular/textacular/pull/128.patch","issue_url":"https://api.github.com/repos/textacular/textacular/issues/128","number":128,"state":"open","locked":false,"title":"Allow custom rank alias.","user":{"login":"simi","id":193936,"node_id":"MDQ6VXNlcjE5MzkzNg==","avatar_url":"https://avatars0.githubusercontent.com/u/193936?v=4","gravatar_id":"","url":"https://api.github.com/users/simi","html_url":"https://github.com/simi","followers_url":"https://api.github.com/users/simi/followers","following_url":"https://api.github.com/users/simi/following{/other_user}","gists_url":"https://api.github.com/users/simi/gists{/gist_id}","starred_url":"https://api.github.com/users/simi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simi/subscriptions","organizations_url":"https://api.github.com/users/simi/orgs","repos_url":"https://api.github.com/users/simi/repos","events_url":"https://api.github.com/users/simi/events{/privacy}","received_events_url":"https://api.github.com/users/simi/received_events","type":"User","site_admin":false},"body":"Non-overlaping rank alias name is great to solve one kind of edge situation as described in https://github.com/textacular/textacular/commit/2d5fc5c19e3ee4e106f5b8f1f4f47018556c2274 (`Game.search(:title => \"Sonic).search(:system => \"Game Gear\")`). Anyway I think there is no reason to not expose it under user control when needed.\r\n\r\n## example\r\n\r\n```ruby\r\nWebComicWithSearchableNameAndAuthor.fuzzy_search('Questionable Content', true, 'my_rank')\r\n```\r\n\r\n```sql\r\nSELECT \"web_comics\".*,\r\n       COALESCE(similarity(\"web_comics\".\"name\"::text, 'Questionable\\ Content'), 0) + COALESCE(similarity(\"web_comics\".\"author\"::text, 'Questionable\\ Content'), 0) AS \"my_rank\"\r\nFROM \"web_comics\"\r\nWHERE ((\"web_comics\".\"name\"::text % 'Questionable\\ Content')\r\n       OR (\"web_comics\".\"author\"::text % 'Questionable\\ Content'))\r\nORDER BY \"my_rank\" DESC\r\nLIMIT $1\r\n```\r\n\r\nThis can potentially fix #87, #88 as well","created_at":"2019-04-09T09:26:27Z","updated_at":"2019-04-09T09:26:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/textacular/textacular/pulls/128/commits","review_comments_url":"https://api.github.com/repos/textacular/textacular/pulls/128/comments","review_comment_url":"https://api.github.com/repos/textacular/textacular/pulls/comments{/number}","comments_url":"https://api.github.com/repos/textacular/textacular/issues/128/comments","statuses_url":"https://api.github.com/repos/textacular/textacular/statuses/2348c20fa9ad51bfb40ed2fa9700676f50b509ed","head":{"label":"simi:rank-alias","ref":"rank-alias","sha":"2348c20fa9ad51bfb40ed2fa9700676f50b509ed","user":{"login":"simi","id":193936,"node_id":"MDQ6VXNlcjE5MzkzNg==","avatar_url":"https://avatars0.githubusercontent.com/u/193936?v=4","gravatar_id":"","url":"https://api.github.com/users/simi","html_url":"https://github.com/simi","followers_url":"https://api.github.com/users/simi/followers","following_url":"https://api.github.com/users/simi/following{/other_user}","gists_url":"https://api.github.com/users/simi/gists{/gist_id}","starred_url":"https://api.github.com/users/simi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simi/subscriptions","organizations_url":"https://api.github.com/users/simi/orgs","repos_url":"https://api.github.com/users/simi/repos","events_url":"https://api.github.com/users/simi/events{/privacy}","received_events_url":"https://api.github.com/users/simi/received_events","type":"User","site_admin":false},"repo":{"id":11393476,"node_id":"MDEwOlJlcG9zaXRvcnkxMTM5MzQ3Ng==","name":"textacular","full_name":"simi/textacular","private":false,"owner":{"login":"simi","id":193936,"node_id":"MDQ6VXNlcjE5MzkzNg==","avatar_url":"https://avatars0.githubusercontent.com/u/193936?v=4","gravatar_id":"","url":"https://api.github.com/users/simi","html_url":"https://github.com/simi","followers_url":"https://api.github.com/users/simi/followers","following_url":"https://api.github.com/users/simi/following{/other_user}","gists_url":"https://api.github.com/users/simi/gists{/gist_id}","starred_url":"https://api.github.com/users/simi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simi/subscriptions","organizations_url":"https://api.github.com/users/simi/orgs","repos_url":"https://api.github.com/users/simi/repos","events_url":"https://api.github.com/users/simi/events{/privacy}","received_events_url":"https://api.github.com/users/simi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/simi/textacular","description":"Textacular exposes full text search capabilities from PostgreSQL, and allows you to declare full text indexes. Textacularwill extend ActiveRecord with named_scope methods making searching easy and fun! ","fork":true,"url":"https://api.github.com/repos/simi/textacular","forks_url":"https://api.github.com/repos/simi/textacular/forks","keys_url":"https://api.github.com/repos/simi/textacular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simi/textacular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simi/textacular/teams","hooks_url":"https://api.github.com/repos/simi/textacular/hooks","issue_events_url":"https://api.github.com/repos/simi/textacular/issues/events{/number}","events_url":"https://api.github.com/repos/simi/textacular/events","assignees_url":"https://api.github.com/repos/simi/textacular/assignees{/user}","branches_url":"https://api.github.com/repos/simi/textacular/branches{/branch}","tags_url":"https://api.github.com/repos/simi/textacular/tags","blobs_url":"https://api.github.com/repos/simi/textacular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simi/textacular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simi/textacular/git/refs{/sha}","trees_url":"https://api.github.com/repos/simi/textacular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simi/textacular/statuses/{sha}","languages_url":"https://api.github.com/repos/simi/textacular/languages","stargazers_url":"https://api.github.com/repos/simi/textacular/stargazers","contributors_url":"https://api.github.com/repos/simi/textacular/contributors","subscribers_url":"https://api.github.com/repos/simi/textacular/subscribers","subscription_url":"https://api.github.com/repos/simi/textacular/subscription","commits_url":"https://api.github.com/repos/simi/textacular/commits{/sha}","git_commits_url":"https://api.github.com/repos/simi/textacular/git/commits{/sha}","comments_url":"https://api.github.com/repos/simi/textacular/comments{/number}","issue_comment_url":"https://api.github.com/repos/simi/textacular/issues/comments{/number}","contents_url":"https://api.github.com/repos/simi/textacular/contents/{+path}","compare_url":"https://api.github.com/repos/simi/textacular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simi/textacular/merges","archive_url":"https://api.github.com/repos/simi/textacular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simi/textacular/downloads","issues_url":"https://api.github.com/repos/simi/textacular/issues{/number}","pulls_url":"https://api.github.com/repos/simi/textacular/pulls{/number}","milestones_url":"https://api.github.com/repos/simi/textacular/milestones{/number}","notifications_url":"https://api.github.com/repos/simi/textacular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simi/textacular/labels{/name}","releases_url":"https://api.github.com/repos/simi/textacular/releases{/id}","deployments_url":"https://api.github.com/repos/simi/textacular/deployments","created_at":"2013-07-13T20:03:37Z","updated_at":"2015-03-27T17:07:05Z","pushed_at":"2019-04-09T09:12:34Z","git_url":"git://github.com/simi/textacular.git","ssh_url":"git@github.com:simi/textacular.git","clone_url":"https://github.com/simi/textacular.git","svn_url":"https://github.com/simi/textacular","homepage":"http://textacular.github.com/textacular","size":493,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"textacular:master","ref":"master","sha":"0e1ec3bcd558adfaa31a784da7983bcb25f312ef","user":{"login":"textacular","id":3623826,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MjM4MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/3623826?v=4","gravatar_id":"","url":"https://api.github.com/users/textacular","html_url":"https://github.com/textacular","followers_url":"https://api.github.com/users/textacular/followers","following_url":"https://api.github.com/users/textacular/following{/other_user}","gists_url":"https://api.github.com/users/textacular/gists{/gist_id}","starred_url":"https://api.github.com/users/textacular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textacular/subscriptions","organizations_url":"https://api.github.com/users/textacular/orgs","repos_url":"https://api.github.com/users/textacular/repos","events_url":"https://api.github.com/users/textacular/events{/privacy}","received_events_url":"https://api.github.com/users/textacular/received_events","type":"Organization","site_admin":false},"repo":{"id":8466446,"node_id":"MDEwOlJlcG9zaXRvcnk4NDY2NDQ2","name":"textacular","full_name":"textacular/textacular","private":false,"owner":{"login":"textacular","id":3623826,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MjM4MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/3623826?v=4","gravatar_id":"","url":"https://api.github.com/users/textacular","html_url":"https://github.com/textacular","followers_url":"https://api.github.com/users/textacular/followers","following_url":"https://api.github.com/users/textacular/following{/other_user}","gists_url":"https://api.github.com/users/textacular/gists{/gist_id}","starred_url":"https://api.github.com/users/textacular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textacular/subscriptions","organizations_url":"https://api.github.com/users/textacular/orgs","repos_url":"https://api.github.com/users/textacular/repos","events_url":"https://api.github.com/users/textacular/events{/privacy}","received_events_url":"https://api.github.com/users/textacular/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/textacular/textacular","description":"Textacular exposes full text search capabilities from PostgreSQL, and allows you to declare full text indexes. Textacularwill extend ActiveRecord with named_scope methods making searching easy and fun! ","fork":false,"url":"https://api.github.com/repos/textacular/textacular","forks_url":"https://api.github.com/repos/textacular/textacular/forks","keys_url":"https://api.github.com/repos/textacular/textacular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/textacular/textacular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/textacular/textacular/teams","hooks_url":"https://api.github.com/repos/textacular/textacular/hooks","issue_events_url":"https://api.github.com/repos/textacular/textacular/issues/events{/number}","events_url":"https://api.github.com/repos/textacular/textacular/events","assignees_url":"https://api.github.com/repos/textacular/textacular/assignees{/user}","branches_url":"https://api.github.com/repos/textacular/textacular/branches{/branch}","tags_url":"https://api.github.com/repos/textacular/textacular/tags","blobs_url":"https://api.github.com/repos/textacular/textacular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/textacular/textacular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/textacular/textacular/git/refs{/sha}","trees_url":"https://api.github.com/repos/textacular/textacular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/textacular/textacular/statuses/{sha}","languages_url":"https://api.github.com/repos/textacular/textacular/languages","stargazers_url":"https://api.github.com/repos/textacular/textacular/stargazers","contributors_url":"https://api.github.com/repos/textacular/textacular/contributors","subscribers_url":"https://api.github.com/repos/textacular/textacular/subscribers","subscription_url":"https://api.github.com/repos/textacular/textacular/subscription","commits_url":"https://api.github.com/repos/textacular/textacular/commits{/sha}","git_commits_url":"https://api.github.com/repos/textacular/textacular/git/commits{/sha}","comments_url":"https://api.github.com/repos/textacular/textacular/comments{/number}","issue_comment_url":"https://api.github.com/repos/textacular/textacular/issues/comments{/number}","contents_url":"https://api.github.com/repos/textacular/textacular/contents/{+path}","compare_url":"https://api.github.com/repos/textacular/textacular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/textacular/textacular/merges","archive_url":"https://api.github.com/repos/textacular/textacular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/textacular/textacular/downloads","issues_url":"https://api.github.com/repos/textacular/textacular/issues{/number}","pulls_url":"https://api.github.com/repos/textacular/textacular/pulls{/number}","milestones_url":"https://api.github.com/repos/textacular/textacular/milestones{/number}","notifications_url":"https://api.github.com/repos/textacular/textacular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/textacular/textacular/labels{/name}","releases_url":"https://api.github.com/repos/textacular/textacular/releases{/id}","deployments_url":"https://api.github.com/repos/textacular/textacular/deployments","created_at":"2013-02-27T21:57:45Z","updated_at":"2019-04-03T07:25:18Z","pushed_at":"2019-04-03T07:25:17Z","git_url":"git://github.com/textacular/textacular.git","ssh_url":"git@github.com:textacular/textacular.git","clone_url":"https://github.com/textacular/textacular.git","svn_url":"https://github.com/textacular/textacular","homepage":"http://textacular.github.com/textacular","size":406,"stargazers_count":645,"watchers_count":645,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":76,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":15,"license":null,"forks":76,"open_issues":15,"watchers":645,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/textacular/textacular/pulls/128"},"html":{"href":"https://github.com/textacular/textacular/pull/128"},"issue":{"href":"https://api.github.com/repos/textacular/textacular/issues/128"},"comments":{"href":"https://api.github.com/repos/textacular/textacular/issues/128/comments"},"review_comments":{"href":"https://api.github.com/repos/textacular/textacular/pulls/128/comments"},"review_comment":{"href":"https://api.github.com/repos/textacular/textacular/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/textacular/textacular/pulls/128/commits"},"statuses":{"href":"https://api.github.com/repos/textacular/textacular/statuses/2348c20fa9ad51bfb40ed2fa9700676f50b509ed"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":40,"deletions":10,"changed_files":2}}
{"actor":{"display_login":"simi"}}