|
strusPython
0.14
|
Object holding the global context of the strus information retrieval engine. More...
#include <bindingObjects.hpp>
Public Member Functions | |
| Context () | |
| Constructor for local mode with own module loader. More... | |
| Context (unsigned int maxNofThreads) | |
| Constructor for local mode with own module loader. More... | |
| Context (unsigned int maxNofThreads, const String &tracecfg) | |
| Constructor for local mode with own module loader and logging of all method call traces. More... | |
| Context (const String &connectionstring) | |
| Constructor for remote mode (objects of the context are living on a server connected via RPC) More... | |
| Context (const String &connectionstring, unsigned int maxNofThreads) | |
| Constructor for remote mode (objects of the context are living on a server connected via RPC) More... | |
| Context (const Context &o) | |
| Copy constructor. More... | |
| ~Context () | |
| Destructor. More... | |
| void | checkErrors () const |
| Check if there has an error occurred and throw if yes. More... | |
| void | loadModule (const String &name_) |
| Load a module. More... | |
| void | addModulePath (const String &paths_) |
| Add a path from where to try to load modules from. More... | |
| void | addResourcePath (const String &paths_) |
| Define where to load analyzer resource files from. More... | |
| StatisticsProcessor | createStatisticsProcessor (const String &name) |
| Create a statistics message processor instance. More... | |
| StorageClient | createStorageClient () |
| Create a storage client instance of the the default storage. More... | |
| StorageClient | createStorageClient (const String &config_) |
| Create a storage client instance. More... | |
| VectorStorageClient | createVectorStorageClient () |
| Create a storage client instance of the the default remote storage of the RPC server. More... | |
| VectorStorageClient | createVectorStorageClient (const String &config_) |
| Create a vector storage client instance. More... | |
| void | createStorage (const String &config_) |
| Create a new storage (physically) described by config. More... | |
| void | createVectorStorage (const String &config_) |
| Create a new storage (physically) described by config. More... | |
| void | destroyStorage (const String &config_) |
| Delete the storage (physically) described by config. More... | |
| DocumentClass | detectDocumentClass (const String &content) |
| Detect the type of document from its content. More... | |
| DocumentAnalyzer | createDocumentAnalyzer (const String &segmentername_="") |
| Create a document analyzer instance. More... | |
| QueryAnalyzer | createQueryAnalyzer () |
| Create a query analyzer instance. More... | |
| QueryEval | createQueryEval () |
| Create a query evaluation instance. More... | |
| void | close () |
| Force cleanup to circumvent object pooling mechanisms in an interpreter context. More... | |
Object holding the global context of the strus information retrieval engine.
| strus::Context::Context | ( | ) |
Constructor for local mode with own module loader.
|
explicit |
Constructor for local mode with own module loader.
| [in] | maxNofThreads | the maximum number of threads used (for error handler context), 0 for default |
|
explicit |
Constructor for local mode with own module loader and logging of all method call traces.
| [in] | maxNofThreads | the maximum number of threads used (for error handler context), 0 for default |
| [in] | tracecfg | configuration for generating method call traces |
|
explicit |
Constructor for remote mode (objects of the context are living on a server connected via RPC)
| [in] | connectionstring | RPC server connection string |
| strus::Context::Context | ( | const String & | connectionstring, |
| unsigned int | maxNofThreads | ||
| ) |
Constructor for remote mode (objects of the context are living on a server connected via RPC)
| [in] | connectionstring | RPC server connection string |
| [in] | maxNofThreads | the maximum number of threads used (for error handler context), 0 for default |
| strus::Context::Context | ( | const Context & | o | ) |
Copy constructor.
|
inline |
Destructor.
| void strus::Context::addModulePath | ( | const String & | paths_ | ) |
Add a path from where to try to load modules from.
| [in] | paths_ | semicolon separated list of module search paths |
| void strus::Context::addResourcePath | ( | const String & | paths_ | ) |
Define where to load analyzer resource files from.
| [in] | paths_ | semicolon separated list of resource search paths |
| void strus::Context::checkErrors | ( | ) | const |
Check if there has an error occurred and throw if yes.
| void strus::Context::close | ( | ) |
Force cleanup to circumvent object pooling mechanisms in an interpreter context.
| DocumentAnalyzer strus::Context::createDocumentAnalyzer | ( | const String & | segmentername_ = "" | ) |
Create a document analyzer instance.
| [in] | segmentername_ | name of the segmenter to use (if empty then the default segmenter is used) |
| QueryAnalyzer strus::Context::createQueryAnalyzer | ( | ) |
Create a query analyzer instance.
| QueryEval strus::Context::createQueryEval | ( | ) |
Create a query evaluation instance.
| StatisticsProcessor strus::Context::createStatisticsProcessor | ( | const String & | name | ) |
Create a statistics message processor instance.
| void strus::Context::createStorage | ( | const String & | config_ | ) |
Create a new storage (physically) described by config.
| [in] | config_ | storage configuration |
| StorageClient strus::Context::createStorageClient | ( | ) |
Create a storage client instance of the the default storage.
| StorageClient strus::Context::createStorageClient | ( | const String & | config_ | ) |
Create a storage client instance.
| [in] | config_ | configuration string of the storage client or empty, if the default remote storage of the RPC server is chosen, |
| void strus::Context::createVectorStorage | ( | const String & | config_ | ) |
Create a new storage (physically) described by config.
| [in] | config_ | storage configuration |
| VectorStorageClient strus::Context::createVectorStorageClient | ( | ) |
Create a storage client instance of the the default remote storage of the RPC server.
| VectorStorageClient strus::Context::createVectorStorageClient | ( | const String & | config_ | ) |
Create a vector storage client instance.
| [in] | config_ | configuration string of the storage client or empty for the default storage |
| void strus::Context::destroyStorage | ( | const String & | config_ | ) |
Delete the storage (physically) described by config.
| [in] | config_ | storage description |
| DocumentClass strus::Context::detectDocumentClass | ( | const String & | content | ) |
Detect the type of document from its content.
| [in] | content | the document content to classify |
| void strus::Context::loadModule | ( | const String & | name_ | ) |
Load a module.
| [in] | name_ | name of the module to load |
1.8.6