Build a custom taxonomy provider for Sitecore Cortex Content Tagging
Version:
The taxonomy provider for Sitecore CortexTM Content Tagging is responsible for managing tags, and can create and store tags based on TagData objects. The taxonomy provider returns Tag objects based on tag ID, and can also return the parent and/or children of a tag if you have implemented structured taxonomy in the provider.
This topic describes how to:
Implement a custom taxonomy provider
Implement a custom taxonomy provider
To create your own taxonomy provider:
-
Implement the
Sitecore.ContentTagging.Core.Providers.ITaxonomyProviderinterface as illustrated in the following example:
Add the taxonomy provider to the configuration file
Add the taxonomy provider to the configuration file
To use your provider in a content tagging configuration:
-
Register it in the configuration file, as in the following example: