You are here: C++ API > Language Analyzer API > dtsLanguageAnalyzerInterface Structure > dtsLanguageAnalyzerInterface::pCreateAnalyzer Data Member
Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsLanguageAnalyzerInterface::pCreateAnalyzer Data Member

Initialize analyzer

Syntax
C++
dtsAnalyzerHandle (* pCreateAnalyzer)();

Handle to the analyzer, which can be used in calls to pInitializeJob, pAnalyzer, etc.

This will be called once per process, and is where one-time inititialization, such as loading dictionaries, should occur. If the analyzer is created and initialized successfully, return a dtsAnalyzerHandle identifying the analyzer (usually by casting the this pointer for the class object implementing the analyzer). If the analyzer could not be initialized, return zero. The analyzer will not be called to process text. Note: The dtSearch Engine will not be able to destroy this object because it has no way to know when it is safe to do so. Therefore, the calling application or the language analyzer DLL must release any resources acquired by creation of a language analyzer, usually on termination.

Copyright (c) 1995-2021 dtSearch Corp. All rights reserved.