{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/31766591","id":31766591,"diff_hunk":"@@ -119,9 +119,11 @@ var ViewModel = function(params) {\n         return {\n             'query_string': {\n                 'default_field': '_all',\n+                'fields': ['title^2', '_all', 'description^1.2'],","path":"website/static/js/search.js","position":4,"original_position":4,"commit_id":"9dec62dc4e14b3a3b67b43ddb9f5857d3ec15508","original_commit_id":"9dec62dc4e14b3a3b67b43ddb9f5857d3ec15508","user":{"login":"fabianvf","id":2431974,"avatar_url":"https://avatars.githubusercontent.com/u/2431974?v=3","gravatar_id":"","url":"https://api.github.com/users/fabianvf","html_url":"https://github.com/fabianvf","followers_url":"https://api.github.com/users/fabianvf/followers","following_url":"https://api.github.com/users/fabianvf/following{/other_user}","gists_url":"https://api.github.com/users/fabianvf/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianvf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianvf/subscriptions","organizations_url":"https://api.github.com/users/fabianvf/orgs","repos_url":"https://api.github.com/users/fabianvf/repos","events_url":"https://api.github.com/users/fabianvf/events{/privacy}","received_events_url":"https://api.github.com/users/fabianvf/received_events","type":"User","site_admin":false},"body":"Same as above","created_at":"2015-06-04T21:16:26Z","updated_at":"2015-06-04T21:16:26Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/2955#discussion_r31766591","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2955","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/31766591"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/2955#discussion_r31766591"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2955"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2955","id":36871787,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/2955","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/2955.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/2955.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2955","number":2955,"state":"open","locked":false,"title":"[Feature Fix]Improve relevance of search results","user":{"login":"brandonPurvis","id":6082535,"avatar_url":"https://avatars.githubusercontent.com/u/6082535?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonPurvis","html_url":"https://github.com/brandonPurvis","followers_url":"https://api.github.com/users/brandonPurvis/followers","following_url":"https://api.github.com/users/brandonPurvis/following{/other_user}","gists_url":"https://api.github.com/users/brandonPurvis/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonPurvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonPurvis/subscriptions","organizations_url":"https://api.github.com/users/brandonPurvis/orgs","repos_url":"https://api.github.com/users/brandonPurvis/repos","events_url":"https://api.github.com/users/brandonPurvis/events{/privacy}","received_events_url":"https://api.github.com/users/brandonPurvis/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nCurrently searches do not place relevant projects at the top of the results. Projects with titles similar to a given query are not at the top of the results page. Also, search results for a query with a singular word are different if the query has a query with a plural word (ex 'Horse' has different results than 'Horses'). This PR improves the apparent relevance of search results, and fixes plural and singular words yielding different results. \r\n\r\nresolves https://github.com/CenterForOpenScience/osf.io/issues/2552\r\n\r\n## Changes\r\n* Titles weight in relevance scoring increased to 2\r\n* Descriptions weight in relevance scoring increased to 1.2\r\n* Use phrase searching by default\r\n* The 'english analyzer' is used for titles and descriptions which fixes the plural/singular issue\r\n\r\n## Side Effects\r\nUse of english analyzer may affect searches for projects with non-english titles or descriptions.","created_at":"2015-06-03T20:01:31Z","updated_at":"2015-06-04T21:16:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f651ecf2f57689cc7481906fc4fba6ca4d16a951","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2955/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2955/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2955/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/9dec62dc4e14b3a3b67b43ddb9f5857d3ec15508","head":{"label":"brandonPurvis:feature/intuitive_search_results","ref":"feature/intuitive_search_results","sha":"9dec62dc4e14b3a3b67b43ddb9f5857d3ec15508","user":{"login":"brandonPurvis","id":6082535,"avatar_url":"https://avatars.githubusercontent.com/u/6082535?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonPurvis","html_url":"https://github.com/brandonPurvis","followers_url":"https://api.github.com/users/brandonPurvis/followers","following_url":"https://api.github.com/users/brandonPurvis/following{/other_user}","gists_url":"https://api.github.com/users/brandonPurvis/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonPurvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonPurvis/subscriptions","organizations_url":"https://api.github.com/users/brandonPurvis/orgs","repos_url":"https://api.github.com/users/brandonPurvis/repos","events_url":"https://api.github.com/users/brandonPurvis/events{/privacy}","received_events_url":"https://api.github.com/users/brandonPurvis/received_events","type":"User","site_admin":false},"repo":{"id":35900857,"name":"osf.io","full_name":"brandonPurvis/osf.io","owner":{"login":"brandonPurvis","id":6082535,"avatar_url":"https://avatars.githubusercontent.com/u/6082535?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonPurvis","html_url":"https://github.com/brandonPurvis","followers_url":"https://api.github.com/users/brandonPurvis/followers","following_url":"https://api.github.com/users/brandonPurvis/following{/other_user}","gists_url":"https://api.github.com/users/brandonPurvis/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonPurvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonPurvis/subscriptions","organizations_url":"https://api.github.com/users/brandonPurvis/orgs","repos_url":"https://api.github.com/users/brandonPurvis/repos","events_url":"https://api.github.com/users/brandonPurvis/events{/privacy}","received_events_url":"https://api.github.com/users/brandonPurvis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brandonPurvis/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/brandonPurvis/osf.io","forks_url":"https://api.github.com/repos/brandonPurvis/osf.io/forks","keys_url":"https://api.github.com/repos/brandonPurvis/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brandonPurvis/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brandonPurvis/osf.io/teams","hooks_url":"https://api.github.com/repos/brandonPurvis/osf.io/hooks","issue_events_url":"https://api.github.com/repos/brandonPurvis/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/brandonPurvis/osf.io/events","assignees_url":"https://api.github.com/repos/brandonPurvis/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/brandonPurvis/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/brandonPurvis/osf.io/tags","blobs_url":"https://api.github.com/repos/brandonPurvis/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brandonPurvis/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brandonPurvis/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/brandonPurvis/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brandonPurvis/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/brandonPurvis/osf.io/languages","stargazers_url":"https://api.github.com/repos/brandonPurvis/osf.io/stargazers","contributors_url":"https://api.github.com/repos/brandonPurvis/osf.io/contributors","subscribers_url":"https://api.github.com/repos/brandonPurvis/osf.io/subscribers","subscription_url":"https://api.github.com/repos/brandonPurvis/osf.io/subscription","commits_url":"https://api.github.com/repos/brandonPurvis/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/brandonPurvis/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/brandonPurvis/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/brandonPurvis/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/brandonPurvis/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/brandonPurvis/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brandonPurvis/osf.io/merges","archive_url":"https://api.github.com/repos/brandonPurvis/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brandonPurvis/osf.io/downloads","issues_url":"https://api.github.com/repos/brandonPurvis/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/brandonPurvis/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/brandonPurvis/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/brandonPurvis/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brandonPurvis/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/brandonPurvis/osf.io/releases{/id}","created_at":"2015-05-19T18:32:48Z","updated_at":"2015-05-19T18:32:52Z","pushed_at":"2015-06-04T20:08:54Z","git_url":"git://github.com/brandonPurvis/osf.io.git","ssh_url":"git@github.com:brandonPurvis/osf.io.git","clone_url":"https://github.com/brandonPurvis/osf.io.git","svn_url":"https://github.com/brandonPurvis/osf.io","homepage":"http://osf.io","size":88122,"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":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"1a16a92c76c604f889eee384813af1ddf974e441","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","created_at":"2013-05-21T15:53:37Z","updated_at":"2015-06-04T09:27:14Z","pushed_at":"2015-06-04T21:06:37Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":214531,"stargazers_count":108,"watchers_count":108,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":451,"forks":96,"open_issues":451,"watchers":108,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2955"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/2955"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2955"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/2955/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2955/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/2955/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/9dec62dc4e14b3a3b67b43ddb9f5857d3ec15508"}}}}