Чтобы добавить в Систему новый язык для поиска событий: Остановите процесс searchdiw_indexer:
service searchd iwtm stop indexer
Остановите процесс iw_indexersearchd:
service iwtm searchd stop indexer
- Подключите дистрибутив Traffic Monitor к серверу.
- Смонтируйте дистрибутив, например, в директорию /mnt/distr rhel-dvd с помощью команды:
mount /dev/cdrom /mnt/distrrhel-dvd Перейдите в каталог с пакетами словарей cd /mnt/rhel-dvd/infowatch/traffic-monitor/Linux, выберите необходимый вам пакет и выполните его установку с помощью команды: rpm -i <название пакета> Например, для установки пакета со словарем французского языка необходимо ввести команду: Image Modified Запустите процесс iw_indexer:
service iwtm start indexer Запустите процесс searchd:service searchd start | Информация |
|---|
| При установке нового словаря происходит полная переиндексация БД, что занимает некоторое время. |
Чтобы включить морфологию языка для поиска событий: Остановите процесс searchdiw_indexer:
service searchd iwtm stop indexer
Остановите процесс iw_indexersearchd:
service iwtm searchd stop indexer
Откройте файл sphinx_options.ini с помощью команды: vim mcedit /opt/iw/tm5/etc/sphinx_options.ini и добавьте ключ необходимого языка в параметр sphinx_language . Например, чтобы включить морфологию русского и турецкого языков в Системе, необходимо указать следующие значения параметра:  | Информация |
|---|
| Чтобы выставить приоритет языка, установите параметр с языком последним в списке значений sphinx_languages файла sphinx_options.ini. |
Для добавления терминов необходимо открыть откройте файл database.conf с учетом используемой СУБДconf используемой СУБД PostgreSQL:
vim mcedit opt/iw/tm5/csw/ oraclepostgresql/database.conf - в случае использования СУБД Oraclevim opt/iw/tm5/csw/postgresql/database.conf - в случае использования СУБД PostgreSQLи добавить Добавьте в данный файл ключ языка с поддержкой морфологии из параметра cfdb_language, например,: 
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 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 /mnt/rhel-dvd/infowatch/traffic-monitor/Linux and select the pack you require to be installed, using the command:
rpm -i <package_name> For example, to install French dictionaru language, it is required to input the following command:
Image Removed - 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 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:
Image Removed | Информация |
|---|
| To set the language priority, put the language parameter to be the last in the list of sphinx_languages parameters of sphinxЗапустите процесс iw_indexer:
service iwtm start indexerЗапустите процесс searchd:
service searchd start
|