Content Extractor FactoryLoad Custom Entity Definitions Method
Loads user defined custom item definitions that can be detected in extracted text and metadata, see CustomEntityExtractionEnabled
and CustomEntityDefinition. It is important to see remarks, as custom item defintions can only be loaded once.
Definition
Namespace: OpenDiscoverSDK
Assembly: OpenDiscoverSDK (in OpenDiscoverSDK.dll) Version: 2026.2.6.0 (2026.02.06)
Assembly: OpenDiscoverSDK (in OpenDiscoverSDK.dll) Version: 2026.2.6.0 (2026.02.06)
C#
public static void LoadCustomEntityDefinitions(
List<CustomEntityDefinition> customEntityDefinitions
)Parameters
- customEntityDefinitions ListCustomEntityDefinition
- A list of user defined CustomEntityDefinition to detect in extracted text and metadata.
Remarks
This method MUST only be called once at application initialization or before any document content extraction is started by any thread. Unpredicatable behavior could result if called while other threads are using the Open Discover SDK for document content extraction.
The custom item definitions are cached for the duration of the Open Discover SDK parent process. The user can still enable/disable the detection of custom item definitions during document content extraction using EntityExtractionSettings property (see property CustomEntityExtractionEnabled).