Instantly share code, notes, and snippets.

Embed
What would you like to do?
public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{
ExamineManager.Instance.IndexProviderCollection["ExternalIndexer"].GatheringNodeData += OnGatheringNodeData;
}
private void OnGatheringNodeData(object sender, IndexingNodeDataEventArgs e)
{
if (e.Fields.ContainsKey("path"))
{
e.Fields["searchPath"] = e.Fields["path"].Replace(',', ' ');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment