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

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

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
При установке нового словаря происходит полная переиндексация БД.
  1. Остановите процесс searchd:
    service searchd stop
  2. Остановите процесс iw_indexer:
    service iwtm stop indexer
  3. Подключите дистрибутив Traffic Monitor к серверу.
  4. Смонтируйте дистрибутив, например, в директорию /distr с помощью команды:
    mount /dev/cdrom /distr
  5. Откройте файл sphinx_options.ini с помощью команды:
    vim /opt/iw/tm5/etc/sphinx_options.

    ini 

    Добавьте код языка с поддержкой морфологии ini и добавьте ключ необходимого языка в параметр sphinx_languageslanguage. 
    Например, чтобы в Системе была включена морфология включить морфологию русского и немецкого турецкого языков , укажите для параметра следующие значения: 
    sphinx_languages = 'rus deu' в Системе, необходимо указать следующие значения параметра:
    Image Added

Sv translation
languageru

Языки с поддержкой морфологии настраиваются с помощью параметра sphinx_languages конфигурационного файла sphinx_options.ini. расположенного в директории opt/iw/tm5/etc .

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

  1. Остановите процесс searchd:
    service searchd stop
  2. Остановите процесс iw_indexer:
    service iwtm stop indexer
  3. Подключите диск с дистрибутивом дистрибутив Traffic Monitor к серверу.
  4. Смонтируйте дистрибутивный дискдистрибутив, например, в директорию /distr с помощью команды:
    mount /dev/cdrom /distr
  5. Перейдите в каталог с пакетами словарей:
    cd словарей cd /disrt/infowatch/traffic-monitor/Linux/Выполните установку пакета: ,
    выберите необходимый вам пакет и выполните его установку с помощью команды:
    rpm -i <название_пакета>
    Например:
    rpm -i iwtm-sphinx_dict-deu-6.5-170.x86_64.rpmОткройте файл sphinx_options.ini, для установки пакета со словарем французского языка необходимо ввести команду:
    Image Added
  6. Запустите процесс iw_indexer:
    service iwtm start indexer
  7. Запустите процесс searchd:
    service searchd start 

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

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

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

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

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

  • Для добавления терминов необходимо открыть файл database.conf с учетом используемой СУБД:

    • vim opt/iw/tm5/csw/oracle/database.conf - в случае использования СУБД Oracle
    • vim opt/iw/tm5/csw/postgresql/database.conf - в случае использования СУБД PostgreSQL

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

    Image Added

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

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

  • Запустите

    процесс iw

    процесс iw_indexer:
    service iwtm start indexer

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

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

    1. Запустите процесс searchd:
      service searchd start 

     

     

    Sv translation
    languageen

    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 dictionary To add a new language for event search to the System: 

    1. Stop the searchd process:
      service searchd stop
    2. Stop the iw_indexer process:
      service iwtm stop indexer
    3. Plug in the Connect Traffic Monitor distribution diskkit to the server.
    4. Mount the Traffic Monitor distribution disk (distribution kit to, for example to , /distr directory) directory with the following command:
      mount /dev/cdrom /distr
    5. Go to the dictionary packages directory:
      cd optpackage directory cd /disrt/infowatch/traffic-monitor/LinuxRun the installation packages: /, choose the required package, and install it with the following command:
      rpm -i name_of_a_package
      For example:
      rpm -i iwtm-sphinx_dict-deu-6.x-yz.x86_64.rpm Open sphinx_options.ini  file<package_name>
      For example, to install a package with a French dictionary, use the following command:
      Image Added
    6. Run the iw_indexer process:
      service iwtm start indexer
    7. Run the searchd process: 
      service searchd start 

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

      When you install a new dictionary, the database is completely reindexed, which may take some time

    To enable morphology support for event search: 

    1. Stop the searchd process:
      service searchd stop
    2. Stop the iw_indexer process:
      service iwtm stop indexer
    3. Connect Traffic Monitor distribution kit to the server.
    4. Mount the distribution kit to, for example, /distr directory with the following command:
      mount /dev/cdrom /distr
    5. Open the file sphinx_options.ini using the command:
      vim /opt/iw/tm5/etc/sphinx_options.ini

      Add 'morphology language' value for sphinx_languages parameter 

       and add the required language key to sphinx_language parameter.
      For example,

      adding new german dictionary, configuration file will look as follows: 
      sphinx_languages = 'rus deu'Run the iw_indexer process:
      service iwtm start indexer

      to activate the morphology of Russian and Turkish languages within the System, the folloving parameter values are to be specified:
      Image Added

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

      To set the language priority,

    make
    1. put the language parameter to be the last in the list of sphinx_languages parameters of sphinx_options.ini file.

    2. To add terms, open the database.conf file (the command depends on installed DBMS:
      • vim opt/iw/tm5/csw/oracle/database.conf - for Oracle
      • vim opt/iw/tm5/csw/postgresql/database.conf - for PostgreSQL

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

      Информация
      titleNote:
    Installing new dictionary full database reindexing happens.
    1. The full list of language keys with morphology support can be found in "(Актуально) Список языков с поддержкой морфологии".

    2. Run the process iw_indexer:
      service iwtm start indexer
    3. Run the process searchd: 
      service searchd start