Updating Search Index in ApplicationEvents - Azure Issue
I've been trying to add a boost to the nodeName field in my site search. This works great locally however when i publish to azure the site simply times out. I also tried previously adding an event in ApplicationEvents to reindex a cusom IndexSet again it works locally but timed out on publishing to azure, can anyone help me on this please ?
protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{
(ExamineManager.Instance.IndexProviderCollection["PublicSearchIndexer"] as UmbracoContentIndexer).DocumentWriting += ApplicationEvents_DocumentWriting;
base.ApplicationStarted(umbracoApplication, applicationContext);
}
private void ApplicationEvents_DocumentWriting(object sender, Examine.LuceneEngine.DocumentWritingEventArgs e)
{
var field = e.Document.GetField("nodeName");
field.SetBoost(1.5f);
}
Updating Search Index in ApplicationEvents - Azure Issue
I've been trying to add a boost to the nodeName field in my site search. This works great locally however when i publish to azure the site simply times out. I also tried previously adding an event in ApplicationEvents to reindex a cusom IndexSet again it works locally but timed out on publishing to azure, can anyone help me on this please ?
Found a solution myself adding this to appsettings seemed to fix the issue:
is working on a reply...