Configuration of language including morphological support and Categories and terms languages is being performed in sphinx_languages parameter of sphinx_options.ini configuration file. To add new dictionary language to the System to perform the events search it is required to: - Stop the searchd process:
service searchd stop - Stop the iw_indexer process:
service iwtm stop indexer - Plug in the Traffic Monitor distribution disk.
- Mount the Traffic Monitor distribution disk ( for example to /distr directory )via:
mount /dev/cdrom /distr - Go to the dictionary packages directory:
cd directory cd opt/disrt/infowatch/traffic-monitor/Linux Run the installation packages: and choose the pack you require to be installed, using the command:
rpm -i name_of_a_package<package_name> For example: rpm -i iwtm-sphinx_dict-deu-6.x-yz.x86_64.rpm Open sphinx_options.ini file, to install French dictionaru language, it is required to input the following command:
Image Added - Run the process iw_indexer:
service iwtm start indexer Run the process searchd:
service searchd start | Информация |
|---|
| New dictionary installation generates a full database reindexing, that takes some time. |
To add new language to the System to perform the events search it is required to:
- Stop the searchd process:
service searchd stop - Stop the iw_indexer process:
service iwtm stop indexer - Plug in the Traffic Monitor distribution disk.
- Mount the Traffic Monitor distribution disk for example to /distr directory via:
mount /dev/cdrom /distr Open the file sphinx_options.ini using the command:
vim /opt/iw/tm5/etc/sphinx_options.ini Add 'morphology language' value for sphinx_languages parameter and add the required language key to sphinx_language parameter. For example, adding new german dictionary, configuration file will look as follows: sphinx_languages = 'rus deu'Run the iw_indexer process: service iwtm start indexer to activate the morphology of Russian and Turkish languages within the System, the folloving parameter values are to be specified:
Image Added | Информация |
|---|
| To set the language priority, |
make put the language parameter to be the last in the list of sphinx_languages parameters of sphinx_options.ini file. |
- To add the terms, it is required opening the file database.conf in accordance with SMDB used:
vim opt/iw/tm5/csw/oracle/database.conf - when using SMDB Oraclevim opt/iw/tm5/csw/postgresql/database.conf - when using SMDB PostgreSQL
and adding the language key including morphology support from cfdb_language parameter, for example,
Image Added Installing new dictionary full database reindexing happens.- Run the process iw_indexer:
service iwtm start indexer - Run the process searchd:
service searchd start
|