Sunday 6 August 2017

Switching from Azure Search to Lucene Search in Sitecore 8.2 Azure App Service


For switching to Lucene Search from Azure search in Sitecore 8.2 Azure App service follow below steps.


  •  Unzip the scwdp package of all the Sitecore instances
  • Copy below script in a bat file. Replace the "WebsitefolderPath" by your scwdp package extracted  website folder path. 
  • Run the bat file script as admin. 



echo Disabling Azure search config files

ren "WebsiteFolderPath\App_Config\Include\Sitecore.ContentSearch.Azure.DefaultIndexConfiguration.config" Sitecore.ContentSearch.Azure.DefaultIndexConfiguration.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Sitecore.ContentSearch.Azure.Index.Core.config" Sitecore.ContentSearch.Azure.Index.Core.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Sitecore.ContentSearch.Azure.Index.Master.config" Sitecore.ContentSearch.Azure.Index.Master.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Sitecore.ContentSearch.Azure.Index.Web.config" Sitecore.ContentSearch.Azure.Index.Web.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Social\Sitecore.Social.Azure.Index.Master.config" Sitecore.Social.Azure.Index.Master.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Social\Sitecore.Social.Azure.Index.Web.config" Sitecore.Social.Azure.Index.Web.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Social\Sitecore.Social.Azure.IndexConfiguration.config" Sitecore.Social.Azure.IndexConfiguration.config.disabled
ren "WebsiteFolderPath\App_Config\Include\ListManagement\Sitecore.ListManagement.Azure.Index.List.config" Sitecore.ListManagement.Azure.Index.List.config.disabled
ren "WebsiteFolderPath\App_Config\Include\ListManagement\Sitecore.ListManagement.Azure.IndexConfiguration.config" Sitecore.ListManagement.Azure.IndexConfiguration.disabled
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Azure.Index.Master.config" Sitecore.Marketing.Azure.Index.Master.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Azure.Index.Web.config" Sitecore.Marketing.Azure.Index.Web.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Azure.IndexConfiguration.config" Sitecore.Marketing.Azure.IndexConfiguration.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Azure.Index.Master.config" Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Azure.Index.Master.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Azure.Index.Web.config" Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Azure.Index.Web.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Azure.IndexConfiguration.config" Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Azure.IndexConfiguration.config.disabled
ren "WebsiteFolderPath\App_Config\Include\FXM\Sitecore.FXM.Azure.DomainsSearch.DefaultIndexConfiguration.config" Sitecore.FXM.Azure.DomainsSearch.DefaultIndexConfiguration.config.disabled
ren "WebsiteFolderPath\App_Config\Include\FXM\Sitecore.FXM.Azure.DomainsSearch.Index.Master.config" Sitecore.FXM.Azure.DomainsSearch.Index.Master.config.disabled
ren "WebsiteFolderPath\App_Config\Include\FXM\Sitecore.FXM.Azure.DomainsSearch.Index.Web.config" Sitecore.FXM.Azure.DomainsSearch.Index.Web.config.disabled
ren "WebsiteFolderPath\App_Config\Include\ContentTesting\Sitecore.ContentTesting.Azure.IndexConfiguration.config" Sitecore.ContentTesting.Azure.IndexConfiguration.config.disabled
ren "WebsiteFolderPath\App_Config\Include\Sitecore.ContentSearch.Azure.Index.Analytics.config" Sitecore.ContentSearch.Azure.Index.Analytics.config.disabled


echo Enabling Lucene search files

ren "WebsiteFolderPath\App_Config\Include\Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config.disabled" Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config
ren "WebsiteFolderPath\App_Config\Include\Sitecore.ContentSearch.Lucene.Index.Core.config.disabled" Sitecore.ContentSearch.Lucene.Index.Core.config
ren "WebsiteFolderPath\App_Config\Include\Sitecore.ContentSearch.Lucene.Index.Master.config.disabled" Sitecore.ContentSearch.Lucene.Index.Master.config
ren "WebsiteFolderPath\App_Config\Include\Social\Sitecore.Social.Lucene.Index.Master.config.disabled" Sitecore.Social.Lucene.Index.Master.config
ren "WebsiteFolderPath\App_Config\Include\Social\Sitecore.Social.Lucene.IndexConfiguration.config.disabled" Sitecore.Social.Lucene.IndexConfiguration.config
ren "WebsiteFolderPath\App_Config\Include\ListManagement\Sitecore.ListManagement.Lucene.Index.List.config.disabled" Sitecore.ListManagement.Lucene.Index.List.config
ren "WebsiteFolderPath\App_Config\Include\ListManagement\Sitecore.ListManagement.Lucene.IndexConfiguration.config.disabled" Sitecore.ListManagement.Lucene.IndexConfiguration.config
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Lucene.Index.Master.config.disabled" Sitecore.Marketing.Lucene.Index.Master.config
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Lucene.IndexConfiguration.config.disabled" Sitecore.Marketing.Lucene.IndexConfiguration.config
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Lucene.Index.Master.config.disabled" Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Lucene.Index.Master.config
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Lucene.IndexConfiguration.config.disabled" Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Lucene.IndexConfiguration.config
ren "WebsiteFolderPath\App_Config\Include\FXM\Sitecore.FXM.Lucene.DomainsSearch.DefaultIndexConfiguration.config.disabled" Sitecore.FXM.Lucene.DomainsSearch.DefaultIndexConfiguration.config
ren "WebsiteFolderPath\App_Config\Include\FXM\Sitecore.FXM.Lucene.DomainsSearch.Index.Master.config.disabled" Sitecore.FXM.Lucene.DomainsSearch.Index.Master.config
ren "WebsiteFolderPath\App_Config\Include\FXM\Sitecore.FXM.Lucene.DomainsSearch.Index.Web.config.disabled" Sitecore.FXM.Lucene.DomainsSearch.Index.Web.config
ren "WebsiteFolderPath\App_Config\Include\ContentTesting\Sitecore.ContentTesting.Lucene.IndexConfiguration.config.disabled" Sitecore.ContentTesting.Lucene.IndexConfiguration.config
ren "WebsiteFolderPath\App_Config\Include\Sitecore.ContentSearch.Lucene.Index.Analytics.config.disabled" Sitecore.ContentSearch.Lucene.Index.Analytics.config
ren "WebsiteFolderPath\App_Config\Include\Sitecore.ContentSearch.Lucene.Index.Web.config.disabled" Sitecore.ContentSearch.Lucene.Index.Web.config
ren "WebsiteFolderPath\App_Config\Include\Social\Sitecore.Social.Lucene.Index.Web.config.disabled" Sitecore.Social.Lucene.Index.Web.config
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Lucene.Index.Web.config.disabled" Sitecore.Marketing.Lucene.Index.Web.config
ren "WebsiteFolderPath\App_Config\Include\Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Lucene.Index.Web.config.disabled" Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Lucene.Index.Web.config
pause





No comments:

Post a Comment