Configuration of morphology 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: - Stop the searchd process:
service searchd stop - Stop the iw_indexer process:
service iwtm stop indexer - Open sphinx_options.ini file:
vim /opt/iw/tm5/etc/sphinx_options.ini - Add
'morphology language' value for sphinx_languages parameter . For example, adding new german dictionary, configuration file will look as follows:
sphinx_languages = 'rus deu' - Go to the dictionary packages directory:
cd optConnect Traffic Monitor distribution kit to the server. - Mount the distribution kit to, for example,
/distr directory with the following command:
mount /dev/cdrom /distr - Go to the dictionary package 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.rpmRun the <package_name> For example, to install a package with a French dictionary, use the following command:
Image Added - Run the iw_indexer process:
service iwtm start indexer Run the searchd process:
service searchd start | Информация |
|---|
| When you install a new dictionary, the database is completely reindexed, which may take some time |
To enable morphology support for event search:
- Stop the searchd process:
service searchd stop - Stop the iw_indexer process:
service iwtm start indexer
stop indexer - Connect Traffic Monitor distribution kit to the server.
- Mount the distribution kit to, for example,
/distr directory with the following command:
mount /dev/cdrom /distr 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 Added | Информация |
|---|
| To set the language priority, |
make put the language parameter to be the last in the list of sphinx_languages parameters of sphinx_options.ini file. |
- To add terms, open the database.conf file (the command depends on installed DBMS:
vim opt/iw/tm5/csw/oracle/database.conf - for Oraclevim 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 Installing new dictionary full database reindexing happens.- Run the process iw_indexer:
service iwtm start indexer - Run the process searchd:
service searchd start
|