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 to the System to perform the events search it is required tofor event search: - Stop the searchd iw_indexer process:
service searchd service iwtm stop indexer - Stop the iw_indexer the searchd process:
service iwtm service searchd stop indexer - Plug in Connect the Traffic Monitor distribution diskkit to the server.
- Mount the Traffic Monitor distribution disk kit (for example to /distr directory via, to /mnt/rhel-dvd directory) with the following command:
mount /dev/cdrom /distrmnt/rhel-dvd - Go to the dictionary packages directory cd opt/disrtdirectory with dictionary packages: cd /mnt/rhel-dvd/infowatch/traffic-monitor/Linux and , choose the pack you require to be installed, using required package and install it with the 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_indexerindexer process:
service iwtm start indexer Run the process searchd:
service searchd start | Информация |
|---|
| New dictionary installation generates a Installing a new dictionary causes full database reindexing, that takes re-indexing, which may take some time. |
To add new language to the System to perform the events search it is required toenable morphology for event search: - Stop the searchd iw_indexer process:
service searchd iwtm stop indexer - Stop the iw_indexer searchd process:
service iwtm service searchd 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 Open the sphinx_options.ini using file using the command: vim mcedit /opt/iw/tm5/etc/sphinx_options.ini and add the required language key to sphinx_language parameter. For example, to activate the morphology of for Russian and Turkish languages within the System, specify 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:
vim opt file (the command depends on DBMS):
mcedit opt/iw/tm5/csw/oracle/database.conf - when using SMDB Oraclevim optOracle DBMSmcedit opt/iw/tm5/csw/postgresql/database.conf - when using SMDB PostgreSQLPostgreSQL DBMS
and adding add the language key including with morphology support from cfdb_language parameter, for example,
 - Run the process iw_indexer:
service iwtm start indexerRun the process searchd:
service searchd start
|