Skip to content

Instantly share code, notes, and snippets.

@pbres
Created January 27, 2018 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbres/16fa667907e3f2657944f678bd7cbda6 to your computer and use it in GitHub Desktop.
Save pbres/16fa667907e3f2657944f678bd7cbda6 to your computer and use it in GitHub Desktop.
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