Build a custom discovery provider for Sitecore Content Tagging
Version:
The discovery provider for Sitecore Content Tagging returns tags based on content from the content provider.
The discovery provider takes a collection of TaggableContent objects as input and returns a collection of TagData objects as output.
This topic describes how to:
Implement a custom discovery provider
Implement a custom discovery provider
To create your own discovery provider:
-
Implement the
Sitecore.ContentTagging.Core.Providers.IDiscoveryProviderinterface as illustrated in the following example:
Add the discovery provider to the configuration file
Add the discovery provider to the configuration file
To use your provider in the content tagging configuration:
-
Register the custom discovery provider in the configuration file, as in the following example: