API
Version 7.x > API > Smart Search indexes not being built View modes: 
User avatar
Member
Member
Erin - 8/13/2013 11:53:17 AM
   
Smart Search indexes not being built
I am unable to get any Smart Search indexes to build no matter what parameters are selected, and I'm not really sure how to go about investigating this issue any further. We are using Windows Azure. The weird thing is that indexes work just fine in production, but never in our development environment.

Any suggestions as to how to tackle this beast of an issue?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/13/2013 1:23:17 PM
   
RE:Smart Search indexes not being built
Is it a problem calling the method within code or just simply executing the task? I've got a simple method I created that will allow me to rebuild an index by its name and I have a similar issue with our dev environment but I chalk it up to very frequent changes in dev and the indexer does not keep up. We're not running in Azure but we are in a web farm environment with MS DFS enabled.

Maybe this helps, maybe not:
private bool RebuildIndex(string IndexName)
{
// Get the search index
SearchIndexInfo index = SearchIndexInfoProvider.GetSearchIndexInfo(IndexName);
if (index != null)
{
// Create rebuild task
SearchTaskInfoProvider.CreateTask(SearchTaskTypeEnum.Rebuild, index.IndexType, null, index.IndexName);
return true;
}
return false;
}

User avatar
Member
Member
Erin - 8/13/2013 1:26:40 PM
   
RE:Smart Search indexes not being built
Simply executing the task is the problem. I'm unable to get it to build even the first time, much less "re-"build.

Also, I should mention I'm running v7.0.28, and we have an obscene number of web farm tasks that will not run. I don't know if these two issues are related or are separate.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/14/2013 7:55:11 AM
   
RE:Smart Search indexes not being built
For each server this site runs on in a web farm environment you will need to have a license for that unless its covered under the Azure install. When you setup the Webfarm module in the UI, this should take care of syncing the files needed, if any, for the search index.

You might try navigating directly to the file system (<root>\App_Data\CMSModules\SmartSearch\<SmartSearchIndexName>\) and deleting the search index files and attempt to build it again. I've found issues with corrupt files in the past which cause many issues.

User avatar
Member
Member
christine - 8/13/2013 1:29:58 PM
   
RE:Smart Search indexes not being built
Does your dev environment have permission to modify the folder the Smart Search indexes are kept in?
Your website folder > App_Data > CMSModules > SmartSearch

User avatar
Member
Member
Erin - 8/13/2013 1:53:47 PM
   
RE:Smart Search indexes not being built
Yes, it does. I even tried setting full control to *everyone* just to be sure, but I'm still not able to get indexes to build.

User avatar
Member
Member
christine - 8/13/2013 3:51:53 PM
   
RE:Smart Search indexes not being built
Is there anything in the event log after you try to build the index?

User avatar
Member
Member
Erin - 8/14/2013 1:03:52 PM
   
RE:Smart Search indexes not being built
Nothing in the event log (relating to this). :-(

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/14/2013 3:07:57 AM
   
RE:Smart Search indexes not being built
Hello,

Could you please describe in details how is the index being set and also, how is the smart search worker role set for the local emulator environment?

You have mentioned web farms - could you please also describe the architecture of your setup?

Best regards,
Juraj Ondrus

User avatar
Member
Member
Erin - 8/14/2013 1:10:03 PM
   
RE:Smart Search indexes not being built
The index is configured in the UI. I've tried many various analyzer types, batch sizes, index parameters (included & excluded), & combinations of these as well. The smart search worker role is set up using the default configuration as described in the Azure documentation.

Regarding the web farm: we did not set them up specifically - they are created as part of the Azure framework (not sure if that is the right word). We have 4 development virtual machines that are running the solution in the Azure emulator, all are connected to a common database and a common blob storage on Azure. For each dev vm we we are using a local host license key as that is what the emulator runs under.

Please let me know if I can provide any other details.

Thank you all so much for your time & help!