Created
January 27, 2018 12:16
-
-
Save pbres/16fa667907e3f2657944f678bd7cbda6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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