{"action":"created","comment":{"url":"https://api.github.com/repos/basho/basho_docs/pulls/comments/71047636","id":71047636,"diff_hunk":"@@ -0,0 +1,92 @@\n+---\n+title: \"Reindexing Data\"\n+description: \"\"\n+project: \"riak_kv\"\n+project_version: \"2.1.4\"\n+menu:\n+  riak_kv-2.1.4:\n+    name: \"Reindexing Data\"\n+    identifier: \"cluster_operations_reindex_data\"\n+    weight: 118\n+    parent: \"managing_cluster_operations\"\n+toc: true\n+canonical_link: \"https://docs.basho.com/riak/kv/latest/using/cluster-operations/reindexing-data\"\n+---\n+\n+After making [changes to your search schema](../updating-search-schemas) we recommend reindexing existing search data. You can reindex data by either:\n+\n+- [Creating a script to 're-PUT' all of the data](#reindex-data-with-custom-script).\n+- [Using the Riak Data Migrator](#reindex-data-with-riak-data-migrator)\n+- [Rebuilding Yokozuna Active Anty Entropy (AAE) trees](#reindex-data-with-aae-rebuild)\n+\n+## Reindexing Data With Custom Script\n+\n+You can reindex existing data by creating a script that 're-PUTs' all of your data. Below is an example script in <<LANGUAGE>>:\n+\n+```ruby\n+# Reindexing script example\n+```\n+\n+## Reindexing Data With Riak Data Migrator\n+\n+In order to reindex search data using the [Riak Data Migrator tool](https://github.com/dankerrigan/riak-data-migrator) you must:\n+\n+1. Step One\n+2. Step Two\n+3. Step Three\n+\n+## Reindexing Data With AAE Rebuild\n+\n+Another option for reindexing existing data is to:\n+\n+1. [Delete the Solr data from the index](#deleting-solr-data).\n+2. [Expire the Yokozuna (YZ) Active Anti Entropy (AAE) trees](#expiring-yokozuna-active-anti-entropy-trees).\n+\n+### Deleting Solr Data\n+\n+First we need to delete the Solr data from the index with the updated the search schema. You do not need to delete the configurations.\n+\n+```bash\n+# Example of deleting Solr data\n+```\n+\n+We can confirm the Solr data is removed by running:\n+\n+```bash\n+# Confirm Solr data removal\n+```\n+\n+After we've successfully removed the Solr data from our index we can move on to the following step.\n+\n+### Expiring Yokozuna Active Anti Entropy Trees\n+\n+Next you'll need to force the Yokozuna (YZ) Active Anti Entropy (AAE) trees to expire. This will cause the trees to rebuild with the new search index. To do this, enter a `riak attach` session and run the following:\n+\n+```erlang\n+rpc:multicall([node() | nodes()], yz_entropy_mgr, expire_trees, []).\n+```\n+\n+Finally, allow the trees to rebuild with the new index. You can monitor the progress by running:\n+\n+```bash\n+riak-admin search aae-status\n+```\n+\n+## Active Anti Entropy Tuning","path":"content/riak/kv/2.1.4/using/cluster-operations/reindexing-data.md","position":75,"original_position":75,"commit_id":"3cb0216eedd0d2347ec520f3c6edb195265e4d01","original_commit_id":"3cb0216eedd0d2347ec520f3c6edb195265e4d01","user":{"login":"laurenrother","id":2624486,"avatar_url":"https://avatars.githubusercontent.com/u/2624486?v=3","gravatar_id":"","url":"https://api.github.com/users/laurenrother","html_url":"https://github.com/laurenrother","followers_url":"https://api.github.com/users/laurenrother/followers","following_url":"https://api.github.com/users/laurenrother/following{/other_user}","gists_url":"https://api.github.com/users/laurenrother/gists{/gist_id}","starred_url":"https://api.github.com/users/laurenrother/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurenrother/subscriptions","organizations_url":"https://api.github.com/users/laurenrother/orgs","repos_url":"https://api.github.com/users/laurenrother/repos","events_url":"https://api.github.com/users/laurenrother/events{/privacy}","received_events_url":"https://api.github.com/users/laurenrother/received_events","type":"User","site_admin":false},"body":"I totally think that this section belongs on this page, but I was confused about what it was doing and what I was supposed to be doing with it when I got here. It'd be good to mention up at the top that this is a step to consider afterwards.","created_at":"2016-07-15T22:08:55Z","updated_at":"2016-07-15T22:08:55Z","html_url":"https://github.com/basho/basho_docs/pull/2166#discussion_r71047636","pull_request_url":"https://api.github.com/repos/basho/basho_docs/pulls/2166","_links":{"self":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/comments/71047636"},"html":{"href":"https://github.com/basho/basho_docs/pull/2166#discussion_r71047636"},"pull_request":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/2166"}}},"pull_request":{"url":"https://api.github.com/repos/basho/basho_docs/pulls/2166","id":77504795,"html_url":"https://github.com/basho/basho_docs/pull/2166","diff_url":"https://github.com/basho/basho_docs/pull/2166.diff","patch_url":"https://github.com/basho/basho_docs/pull/2166.patch","issue_url":"https://api.github.com/repos/basho/basho_docs/issues/2166","number":2166,"state":"open","locked":false,"title":"Add pages on updating search schemas & reindexing search data.","user":{"login":"erjohnson","id":3651976,"avatar_url":"https://avatars.githubusercontent.com/u/3651976?v=3","gravatar_id":"","url":"https://api.github.com/users/erjohnson","html_url":"https://github.com/erjohnson","followers_url":"https://api.github.com/users/erjohnson/followers","following_url":"https://api.github.com/users/erjohnson/following{/other_user}","gists_url":"https://api.github.com/users/erjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/erjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erjohnson/subscriptions","organizations_url":"https://api.github.com/users/erjohnson/orgs","repos_url":"https://api.github.com/users/erjohnson/repos","events_url":"https://api.github.com/users/erjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/erjohnson/received_events","type":"User","site_admin":false},"body":"Started a new branch for these changes which includes the latest changes (addition of KV 2.0.7, etc) to the master branch.\r\n\r\nI've fleshed out the Reindexing Data page more but it is still missing some code examples I would like to add. Looking for general feedback on section titles, structure, or any other information that should be included on these pages.","created_at":"2016-07-14T18:43:02Z","updated_at":"2016-07-15T22:08:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3dbf24384224b9d0776e29d2c54bad09949909a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/basho/basho_docs/pulls/2166/commits","review_comments_url":"https://api.github.com/repos/basho/basho_docs/pulls/2166/comments","review_comment_url":"https://api.github.com/repos/basho/basho_docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/basho/basho_docs/issues/2166/comments","statuses_url":"https://api.github.com/repos/basho/basho_docs/statuses/3cb0216eedd0d2347ec520f3c6edb195265e4d01","head":{"label":"basho:ej/kv/search-schemas","ref":"ej/kv/search-schemas","sha":"3cb0216eedd0d2347ec520f3c6edb195265e4d01","user":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"repo":{"id":2401217,"name":"basho_docs","full_name":"basho/basho_docs","owner":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/basho/basho_docs","description":"Basho Products Documentation","fork":false,"url":"https://api.github.com/repos/basho/basho_docs","forks_url":"https://api.github.com/repos/basho/basho_docs/forks","keys_url":"https://api.github.com/repos/basho/basho_docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basho/basho_docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basho/basho_docs/teams","hooks_url":"https://api.github.com/repos/basho/basho_docs/hooks","issue_events_url":"https://api.github.com/repos/basho/basho_docs/issues/events{/number}","events_url":"https://api.github.com/repos/basho/basho_docs/events","assignees_url":"https://api.github.com/repos/basho/basho_docs/assignees{/user}","branches_url":"https://api.github.com/repos/basho/basho_docs/branches{/branch}","tags_url":"https://api.github.com/repos/basho/basho_docs/tags","blobs_url":"https://api.github.com/repos/basho/basho_docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basho/basho_docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basho/basho_docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/basho/basho_docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basho/basho_docs/statuses/{sha}","languages_url":"https://api.github.com/repos/basho/basho_docs/languages","stargazers_url":"https://api.github.com/repos/basho/basho_docs/stargazers","contributors_url":"https://api.github.com/repos/basho/basho_docs/contributors","subscribers_url":"https://api.github.com/repos/basho/basho_docs/subscribers","subscription_url":"https://api.github.com/repos/basho/basho_docs/subscription","commits_url":"https://api.github.com/repos/basho/basho_docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/basho/basho_docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/basho/basho_docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/basho/basho_docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/basho/basho_docs/contents/{+path}","compare_url":"https://api.github.com/repos/basho/basho_docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basho/basho_docs/merges","archive_url":"https://api.github.com/repos/basho/basho_docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basho/basho_docs/downloads","issues_url":"https://api.github.com/repos/basho/basho_docs/issues{/number}","pulls_url":"https://api.github.com/repos/basho/basho_docs/pulls{/number}","milestones_url":"https://api.github.com/repos/basho/basho_docs/milestones{/number}","notifications_url":"https://api.github.com/repos/basho/basho_docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basho/basho_docs/labels{/name}","releases_url":"https://api.github.com/repos/basho/basho_docs/releases{/id}","deployments_url":"https://api.github.com/repos/basho/basho_docs/deployments","created_at":"2011-09-16T18:47:02Z","updated_at":"2016-07-07T17:35:13Z","pushed_at":"2016-07-15T21:40:21Z","git_url":"git://github.com/basho/basho_docs.git","ssh_url":"git@github.com:basho/basho_docs.git","clone_url":"https://github.com/basho/basho_docs.git","svn_url":"https://github.com/basho/basho_docs","homepage":"http://docs.basho.com","size":44924,"stargazers_count":124,"watchers_count":124,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":133,"mirror_url":null,"open_issues_count":146,"forks":133,"open_issues":146,"watchers":124,"default_branch":"master"}},"base":{"label":"basho:master","ref":"master","sha":"92780712db20f88bd94fa1f7e556c7ede383a6f2","user":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"repo":{"id":2401217,"name":"basho_docs","full_name":"basho/basho_docs","owner":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/basho/basho_docs","description":"Basho Products Documentation","fork":false,"url":"https://api.github.com/repos/basho/basho_docs","forks_url":"https://api.github.com/repos/basho/basho_docs/forks","keys_url":"https://api.github.com/repos/basho/basho_docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basho/basho_docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basho/basho_docs/teams","hooks_url":"https://api.github.com/repos/basho/basho_docs/hooks","issue_events_url":"https://api.github.com/repos/basho/basho_docs/issues/events{/number}","events_url":"https://api.github.com/repos/basho/basho_docs/events","assignees_url":"https://api.github.com/repos/basho/basho_docs/assignees{/user}","branches_url":"https://api.github.com/repos/basho/basho_docs/branches{/branch}","tags_url":"https://api.github.com/repos/basho/basho_docs/tags","blobs_url":"https://api.github.com/repos/basho/basho_docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basho/basho_docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basho/basho_docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/basho/basho_docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basho/basho_docs/statuses/{sha}","languages_url":"https://api.github.com/repos/basho/basho_docs/languages","stargazers_url":"https://api.github.com/repos/basho/basho_docs/stargazers","contributors_url":"https://api.github.com/repos/basho/basho_docs/contributors","subscribers_url":"https://api.github.com/repos/basho/basho_docs/subscribers","subscription_url":"https://api.github.com/repos/basho/basho_docs/subscription","commits_url":"https://api.github.com/repos/basho/basho_docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/basho/basho_docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/basho/basho_docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/basho/basho_docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/basho/basho_docs/contents/{+path}","compare_url":"https://api.github.com/repos/basho/basho_docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basho/basho_docs/merges","archive_url":"https://api.github.com/repos/basho/basho_docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basho/basho_docs/downloads","issues_url":"https://api.github.com/repos/basho/basho_docs/issues{/number}","pulls_url":"https://api.github.com/repos/basho/basho_docs/pulls{/number}","milestones_url":"https://api.github.com/repos/basho/basho_docs/milestones{/number}","notifications_url":"https://api.github.com/repos/basho/basho_docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basho/basho_docs/labels{/name}","releases_url":"https://api.github.com/repos/basho/basho_docs/releases{/id}","deployments_url":"https://api.github.com/repos/basho/basho_docs/deployments","created_at":"2011-09-16T18:47:02Z","updated_at":"2016-07-07T17:35:13Z","pushed_at":"2016-07-15T21:40:21Z","git_url":"git://github.com/basho/basho_docs.git","ssh_url":"git@github.com:basho/basho_docs.git","clone_url":"https://github.com/basho/basho_docs.git","svn_url":"https://github.com/basho/basho_docs","homepage":"http://docs.basho.com","size":44924,"stargazers_count":124,"watchers_count":124,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":133,"mirror_url":null,"open_issues_count":146,"forks":133,"open_issues":146,"watchers":124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/2166"},"html":{"href":"https://github.com/basho/basho_docs/pull/2166"},"issue":{"href":"https://api.github.com/repos/basho/basho_docs/issues/2166"},"comments":{"href":"https://api.github.com/repos/basho/basho_docs/issues/2166/comments"},"review_comments":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/2166/comments"},"review_comment":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/basho/basho_docs/pulls/2166/commits"},"statuses":{"href":"https://api.github.com/repos/basho/basho_docs/statuses/3cb0216eedd0d2347ec520f3c6edb195265e4d01"}}}}
{"actor":{"display_login":"laurenrother"}}