Last active
June 20, 2017 22:17
-
-
Save harshbaid/e388cb1bbf07d644d3cd29451dd8c53a to your computer and use it in GitHub Desktop.
Command-line script to Setup or Cleanup Solr indexes for Sitecore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ECHO 'Starting to delete Sitecore's Solr cores' | |
| REM solr start -p 8080 | |
| REM d:\solr\bin\solr delete -c sitecore_core_index | |
| CALL d:\solr\bin\solr delete -c sitecore_master_index | |
| CALL d:\solr\bin\solr delete -c sitecore_web_index | |
| CALL d:\solr\bin\solr delete -c sitecore_web_index_rebuild | |
| CALL d:\solr\bin\solr delete -c sitecore_marketing_asset_index_master | |
| CALL d:\solr\bin\solr delete -c sitecore_marketing_asset_index_web | |
| CALL d:\solr\bin\solr delete -c sitecore_marketing_asset_index_web_rebuild | |
| CALL d:\solr\bin\solr delete -c sitecore_marketingdefinitions_master | |
| CALL d:\solr\bin\solr delete -c sitecore_marketingdefinitions_web | |
| CALL d:\solr\bin\solr delete -c sitecore_marketingdefinitions_web_rebuild | |
| CALL d:\solr\bin\solr delete -c sitecore_testing_index | |
| CALL d:\solr\bin\solr delete -c sitecore_suggested_test_index | |
| CALL d:\solr\bin\solr delete -c sitecore_fxm_master_index | |
| CALL d:\solr\bin\solr delete -c sitecore_fxm_web_index | |
| CALL d:\solr\bin\solr delete -c sitecore_fxm_web_index_rebuild | |
| CALL d:\solr\bin\solr delete -c sitecore_list_index | |
| CALL d:\solr\bin\solr delete -c social_messages_master | |
| CALL d:\solr\bin\solr delete -c social_messages_web | |
| CALL d:\solr\bin\solr delete -c social_messages_web_rebuild | |
| CALL d:\solr\bin\solr delete -c sitecore_analytics_index | |
| ECHO 'Completed creating Solr cores for Sitecore and restarting Solr for changes to take effect' | |
| CALL d:\solr\bin\solr restart -p 8080 | |
| ECHO 'Solr restarted...' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo 'Starting to create Solr cores for Sitecore' | |
| CALL d:\solr\bin\solr start -p 8080 | |
| CALL d:\solr\bin\solr create -c sitecore_core_index -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_master_index -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_web_index -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_web_index_rebuild -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_marketing_asset_index_master -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_marketing_asset_index_web -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_marketing_asset_index_web_rebuild -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_marketingdefinitions_master -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_marketingdefinitions_web -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_marketingdefinitions_web_rebuild -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_testing_index -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_suggested_test_index -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_fxm_master_index -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_fxm_web_index -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_fxm_web_index_rebuild -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_list_index -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c social_messages_master -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c social_messages_web -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c social_messages_web_rebuild -d sitecore_configs | |
| CALL d:\solr\bin\solr create -c sitecore_analytics_index -d sitecore_configs | |
| echo 'Completed creating Solr cores for Sitecore and restarting Solr for changes to take effect' | |
| CALL d:\solr\bin\solr restart -p 8080 | |
| echo 'Solr restarted...' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment