{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/comments/129829792","pull_request_review_id":52642402,"id":129829792,"diff_hunk":"@@ -1,4 +1,27 @@\n {\n+  \"settings\": {\n+    \"index\": {\n+      \"number_of_shards\": 1","path":"frameworks/g-cloud-9/search_mapping.json","position":4,"original_position":4,"commit_id":"6f204aaa08df689ed46b061e547cd22cfa5ed57d","original_commit_id":"6f204aaa08df689ed46b061e547cd22cfa5ed57d","user":{"login":"Wynndow","id":13836290,"avatar_url":"https://avatars1.githubusercontent.com/u/13836290?v=4","gravatar_id":"","url":"https://api.github.com/users/Wynndow","html_url":"https://github.com/Wynndow","followers_url":"https://api.github.com/users/Wynndow/followers","following_url":"https://api.github.com/users/Wynndow/following{/other_user}","gists_url":"https://api.github.com/users/Wynndow/gists{/gist_id}","starred_url":"https://api.github.com/users/Wynndow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wynndow/subscriptions","organizations_url":"https://api.github.com/users/Wynndow/orgs","repos_url":"https://api.github.com/users/Wynndow/repos","events_url":"https://api.github.com/users/Wynndow/events{/privacy}","received_events_url":"https://api.github.com/users/Wynndow/received_events","type":"User","site_admin":false},"body":"Does dropping to one shard have any implications for data recovery if we lose a node? It makes sense that if we have the same 1 shard duplicated across three nodes it should be fine. I just wonder what the reasoning behind having 5 shards initially was?","created_at":"2017-07-27T12:39:57Z","updated_at":"2017-07-27T12:39:57Z","html_url":"https://github.com/alphagov/digitalmarketplace-frameworks/pull/462#discussion_r129829792","pull_request_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/462","_links":{"self":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/comments/129829792"},"html":{"href":"https://github.com/alphagov/digitalmarketplace-frameworks/pull/462#discussion_r129829792"},"pull_request":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/462"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/462","id":132697719,"html_url":"https://github.com/alphagov/digitalmarketplace-frameworks/pull/462","diff_url":"https://github.com/alphagov/digitalmarketplace-frameworks/pull/462.diff","patch_url":"https://github.com/alphagov/digitalmarketplace-frameworks/pull/462.patch","issue_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/issues/462","number":462,"state":"open","locked":false,"title":"Add stemming and disable sharding","user":{"login":"samuelhwilliams","id":2920760,"avatar_url":"https://avatars1.githubusercontent.com/u/2920760?v=4","gravatar_id":"","url":"https://api.github.com/users/samuelhwilliams","html_url":"https://github.com/samuelhwilliams","followers_url":"https://api.github.com/users/samuelhwilliams/followers","following_url":"https://api.github.com/users/samuelhwilliams/following{/other_user}","gists_url":"https://api.github.com/users/samuelhwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelhwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelhwilliams/subscriptions","organizations_url":"https://api.github.com/users/samuelhwilliams/orgs","repos_url":"https://api.github.com/users/samuelhwilliams/repos","events_url":"https://api.github.com/users/samuelhwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/samuelhwilliams/received_events","type":"User","site_admin":false},"body":"## Summary\r\nWe want to be a little forgiving with user's search terms so that they don't miss relevant services if they're searching with a word in the wrong form (e.g. `hosted` instead of `hosting`). Therefore we'll apply a light stemming algorithm to search terms to collapse them to a root form (e.g. `hosting`/`hosted` will be reduced to `host` and indexed/searched against that term).\r\n\r\nWe will apply this against our main full-text service-specific fields: description, features, benefits, and as a bonus, categories (where it's easy to imagine users may search using a mutation of our term).\r\n\r\nWe are also disabling sharding because our G-Cloud index is tiny (~60MB) and sharding is overkill. This will give us a little efficiency bump hopefully (albeit probably negligible).\r\n\r\n## Ticket\r\nhttps://trello.com/c/Y6rdUgxU/517-search-stemming","created_at":"2017-07-27T08:55:43Z","updated_at":"2017-07-27T12:39:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a8ec26afea42c519c900c2dff068afb4cdda0ca","assignee":null,"assignees":[],"requested_reviewers":[{"login":"galund","id":190828,"avatar_url":"https://avatars3.githubusercontent.com/u/190828?v=4","gravatar_id":"","url":"https://api.github.com/users/galund","html_url":"https://github.com/galund","followers_url":"https://api.github.com/users/galund/followers","following_url":"https://api.github.com/users/galund/following{/other_user}","gists_url":"https://api.github.com/users/galund/gists{/gist_id}","starred_url":"https://api.github.com/users/galund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galund/subscriptions","organizations_url":"https://api.github.com/users/galund/orgs","repos_url":"https://api.github.com/users/galund/repos","events_url":"https://api.github.com/users/galund/events{/privacy}","received_events_url":"https://api.github.com/users/galund/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/462/commits","review_comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/462/comments","review_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/issues/462/comments","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/statuses/6f204aaa08df689ed46b061e547cd22cfa5ed57d","head":{"label":"alphagov:shw-update-search-mapping","ref":"shw-update-search-mapping","sha":"6f204aaa08df689ed46b061e547cd22cfa5ed57d","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":24135361,"name":"digitalmarketplace-frameworks","full_name":"alphagov/digitalmarketplace-frameworks","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/digitalmarketplace-frameworks","description":"YAML content for the Digital Marketplace","fork":false,"url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks","forks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/forks","keys_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/teams","hooks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/hooks","issue_events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/events","assignees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/tags","blobs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/languages","stargazers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/stargazers","contributors_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/contributors","subscribers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/subscribers","subscription_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/subscription","commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/merges","archive_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/downloads","issues_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/deployments","created_at":"2014-09-17T07:56:11Z","updated_at":"2017-02-07T14:16:32Z","pushed_at":"2017-07-27T08:55:44Z","git_url":"git://github.com/alphagov/digitalmarketplace-frameworks.git","ssh_url":"git@github.com:alphagov/digitalmarketplace-frameworks.git","clone_url":"https://github.com/alphagov/digitalmarketplace-frameworks.git","svn_url":"https://github.com/alphagov/digitalmarketplace-frameworks","homepage":"","size":4391,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"c89cd9592256c53453bc446dcbca318abe32ef67","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":24135361,"name":"digitalmarketplace-frameworks","full_name":"alphagov/digitalmarketplace-frameworks","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/digitalmarketplace-frameworks","description":"YAML content for the Digital Marketplace","fork":false,"url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks","forks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/forks","keys_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/teams","hooks_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/hooks","issue_events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/events","assignees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/tags","blobs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/languages","stargazers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/stargazers","contributors_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/contributors","subscribers_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/subscribers","subscription_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/subscription","commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/merges","archive_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/downloads","issues_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/deployments","created_at":"2014-09-17T07:56:11Z","updated_at":"2017-02-07T14:16:32Z","pushed_at":"2017-07-27T08:55:44Z","git_url":"git://github.com/alphagov/digitalmarketplace-frameworks.git","ssh_url":"git@github.com:alphagov/digitalmarketplace-frameworks.git","clone_url":"https://github.com/alphagov/digitalmarketplace-frameworks.git","svn_url":"https://github.com/alphagov/digitalmarketplace-frameworks","homepage":"","size":4391,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/462"},"html":{"href":"https://github.com/alphagov/digitalmarketplace-frameworks/pull/462"},"issue":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/issues/462"},"comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/issues/462/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/462/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/pulls/462/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/digitalmarketplace-frameworks/statuses/6f204aaa08df689ed46b061e547cd22cfa5ed57d"}}}}
{"actor":{"display_login":"Wynndow"}}