Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 6.10
Sv translation
languageru

Чтобы добавить в Систему новый язык для поиска событий: 

  1. Остановите процесс iw_indexer:
    service iwtm stop indexer

  2. Остановите процесс searchd:
    service searchd stop

  3. Подключите дистрибутив Traffic Monitor к серверу.
  4. Смонтируйте дистрибутив, например, в директорию /mnt/rhel-dvd с помощью команды:
    mount /dev/cdrom /mnt/rhel-dvd
  5. Перейдите в каталог с пакетами словарей cd /mnt/rhel-dvd/infowatch/traffic-monitor/Linux,
    выберите необходимый вам пакет и выполните его установку с помощью команды:
    rpm -i <название пакета>
    Например, для установки пакета со словарем французского языка необходимо ввести команду:

  6. Запустите процесс iw_indexer:
    service iwtm start indexer

    Информация
    titleПримечание:

    При установке нового словаря происходит полная переиндексация БД, что занимает некоторое время.

Чтобы включить морфологию языка для поиска событий: 

  1. Остановите процесс iw_indexer:
    service iwtm stop indexer

  2. Остановите процесс searchd:
    service searchd stop

  3. Откройте файл sphinx_options.ini с помощью команды:
    mcedit /opt/iw/tm5/etc/sphinx_options.ini и  
    и добавьте ключ необходимого языка в параметр sphinx_language .
    Например, чтобы включить морфологию русского и турецкого языков в Системе, необходимо указать следующие значения параметра:

    Информация
    titleПримечание:

    Чтобы выставить приоритет языка, установите параметр с языком последним в списке значений sphinx_languages файла sphinx_options.ini.

  4. Для добавления терминов откройте файл database.conf используемой СУБД PostgreSQL:
    mcedit /opt/iw/tm5/csw/postgresqlpostgres/database.confЕсли используется СУБД Oracle, то для добавления терминов откройте файл database.conf:
    mcedit /opt/iw/tm5/csw/oracle/database.conf
     

  5. Добавьте в данный файл ключ языка с поддержкой морфологии из параметра cfdb_language, например:

    Информация
    titleПримечание:

    Полный список ключей для морфологии разных языков приведен в статье "(Актуально) Список языков с поддержкой морфологии".

  6. Запустите процесс iw_indexer:
    service iwtm start indexer

 

Sv translation
languageen

To add a new language to the System for event search: 

  1. Stop the iw_indexer process:
    service iwtm stop indexer
  2. Stop the searchd process:
    service searchd stop
  3. Connect the Traffic Monitor distribution kit to the server.
  4. Mount the Traffic Monitor distribution kit (for example, to /mnt/rhel-dvd directory) with the following command:
    mount /dev/cdrom /mnt/rhel-dvd
  5. Go to the directory with dictionary packages: cd /mnt/rhel-dvd/infowatch/traffic-monitor/Linux, choose the required package and install it with the command:
    rpm -i <package_name>
    For example, to install a package with a French dictionary, use the following command:
  6. Run the iw_indexer process:
    service iwtm start indexer
  7. Run the process searchd: 
    service searchd start 

    Информация
    titleNote:

    Installing a new dictionary causes full database re-indexing, which may take some time.

To enable morphology for event search: 

  1. Stop the iw_indexer process:
    service iwtm stop indexer
  2. Stop the searchd process:
    service searchd stop
  3. Open the sphinx_options.ini file using the command:
    mcedit /opt/iw/tm5/etc/sphinx_options.ini and add the required language key to sphinx_language parameter.
    For example, to activate the morphology for Russian and Turkish languages, specify the folloving parameter values:

    Информация
    titleNote:

    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.

  4. To add terms, open the database.conf file (the command depends on DBMS):
    • mcedit opt/iw/tm5/csw/oracle/database.conf - when using Oracle DBMS
    • mcedit opt/iw/tm5/csw/postgresql/database.conf - when using PostgreSQL DBMS

    and add the language key with morphology support from cfdb_language parameter, for example,

    Информация
    titleNote:

    The full list of language keys with morphology support can be found in "List of languages with morphology support".

  5. Run the process iw_indexer:
    service iwtm start indexer