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

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

Ключ

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

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

  1. Остановите процесс процессы iw_indexer и iw_is:
    Перейдите в каталог с пакетами словарей cd /mnt/rhel-dvd/infowatch/traffic-monitor/Linux,
    выберите необходимый вам iwtm stop indexer
  2. Подключите дистрибутив Traffic Monitor к серверу.
  3. Смонтируйте дистрибутив, например, в директорию /mnt/rhel-dvd с помощью команды:
    mount /dev/cdrom /mnt/rhel-dvd
  4. iwtm stop is
  5. Перейдите в локальный репозиторий, где лежат все пакеты, загруженные при установке: 
    cd /opt/iw/distr
  6. Перейдите в директорию, соответствующую текущей версии Traffic Monitor
  7. Выберите необходимый пакет и выполните его установку с помощью команды:
    rpm -i <название пакета>
    Например, для установки пакета со словарем французского языка необходимо ввести команду:
    Image RemovedЗапустите процесс iw_indexerrpm -i iwtm-sphinx-dict-fra-7.0.0-792.x86-64.rpm
  8. Запустите процессы:
    iwtm start indexer
    iwtm start is

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

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

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

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

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

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

  3. Для добавления терминов необходимо открыть откройте файл database.conf с учетом используемой СУБДconf используемой СУБД PostgreSQL:
    mcedit opt/iw/tm5/csw/

    oracle

    postgresql/database.conf

     - в случае использования СУБД Oracle

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

    postgresql

    oracle/database.

    conf - в случае использования СУБД PostgreSQL

    и добавить conf 

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

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

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

  5. Запустите процесспроцессы iw_indexer и iw_is:
    iwtm start indexer
    iwtm start is

 

Sv translation
languageen

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

  1. Stop the thу iw_indexer and iw_indexer processis processes:
    iwtm stop indexer
  2. Connect the Traffic Monitor distribution kit to the server.
  3. Mount the Traffic Monitor distribution kit (for example, to /mnt/rhel-dvd directory) with the following command:
    mount /dev/cdrom /mnt/rhel-dvd
  4. Go to the directory with dictionary packages: cd /mnt/rhel-dvd/infowatch/traffic-monitor/Linux, choose iwtm stop is
  5. Go to the local repository that keeps packages downloaded during the installation: 
    cd /opt/iw/distr
  6. Go to directory that matches current Traffic Monitor version. 

  7. Select the required package and install it

    with

    using the command:

    rpm -i <package

    _

    name> 

    For example, to install

    a package with a

    French dictionary package,

    use

    enter the

    following

    command:

    Image Removed

    Run the iw_indexer processrpm -i iwtm-sphinx-dict-fra-7.0.0-792.x86-64.rpm

  8. Run the processes:
    iwtm start indexer
    iwtm start is

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

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

    To enable morphology for

event
  1. events search: 

 
  1. Stop the iw_indexer and iw_is processprocesses:
    iwtm stop indexerindexer 
    iwtm stop is
  2. 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 following 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.

  3. To add terms, open

    When using PostgreSQL DBMS, open the database.conf file

    (the command depends on DBMS)

    to add terms:
    mcedit opt/iw/tm5/csw/

    oracle

    postgresql/database.

    conf - when using Oracle DBMSmcedit opt

    conf When using Oracle DBMS, open the database.conf file to add terms:
    mcedit opt/iw/tm5/csw/

    postgresql

    oracle/database.

    conf - when using PostgreSQL DBMS

    and add conf

  4. 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 including morphological support".

  5. Run the process the iw_indexer and iw_is processes:
    iwtm start indexer

 

 

 

 

 

 

 

 

 

 

  1. iwtm start is