Change the SmartSearch Index location to Azure blob

Jun Delos Reyes asked on May 9, 2014 11:08


Is it possible to change the location where the Smartsearch Index is being saved? i would like to save it to my own Azure Blob. and also, i would like to also make the smartsearch point to the same azure blob once the user used smartsearch

Recent Answers

Filip Ligač answered on May 30, 2014 07:54

Hi Jun,

It is possible to remap Smart search indexes to another blob. You can use a code similar to the following:

var externalContainerPath = "~/App_Data/CMSModules/SmartSearch/"; // Path to Smart search index default location
AbstractStorageProvider searchProvider = new StorageProvider("azure", "CMS.AzureStorage");
searchProvider.CustomRootPath = "myCustomBlob"; // Blob storage container
searchProvider.PublicExternalFolderObject = true;
StorageHelper.MapStoragePath(externalContainerPath, searchProvider);
1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.