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 a new language for event search 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 Connect Traffic Monitor distribution diskkit to the server.
- Mount the Traffic Monitor distribution disk kit to, for example to ,
/distr directory via directory with the following command:
mount /dev/cdrom /distr - Go to the dictionary packages directory cd optpackage directory
cd /disrt/infowatch/traffic-monitor/Linux and choose the pack you require to be installed, using the /, choose the required package, and install it with the following command:
rpm -i <package_name> For example, to install French dictionaru language, it is required to input a package with a French dictionary, use the following command:
 - Run the process the iw_indexer process:
service iwtm start indexer Run the the searchd 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 toWhen you install a new dictionary, the database is completely reindexed, which may take some time |
To enable morphology support for event search:
- Stop the searchd process:
service searchd stop - Stop the iw_indexer process:
service iwtm stop indexer - Plug in the Connect Traffic Monitor distribution diskkit to the server.
- Mount the Traffic Monitor distribution disk kit to, for example to ,
/distr directory via directory with the following command:
mount /dev/cdrom /distr Open the file sphinx_options.ini using the command:
vim /opt/iw/tm5/etc/sphinx_options.ini and add the required language key to sphinx_language parameter. For example, to activate the morphology of Russian and Turkish languages within the System, the folloving parameter values are to be specified:
 | Информация |
|---|
| To set the language priority, 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 open the database.conf in accordance with SMDB used file (the command depends on installed DBMS:
vim opt/iw/tm5/csw/oracle/database.conf - when using SMDB for Oraclevim opt/iw/tm5/csw/postgresql/database.conf - when using SMDB for PostgreSQL
and adding add the key of the language key including with morphology support from cfdb_language parameter parameter, for for example,
 - Run the process iw_indexer:
service iwtm start indexer - Run the process searchd:
service searchd start
|