Configuration of morphology and 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 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' - Plug in the Traffic Monitor distribution disk.
- Mount the Traffic Monitor distribution disk (for example to /distr directory):
mount /dev/cdrom /distr - Go to the dictionary packages directory:
cd opt/disrt/infowatch/traffic-monitor/Linux - Run the installation packages:
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:
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' Run the iw_indexer process:
service iwtm start indexer
| Информация |
|---|
| To set language priority, make language parameter the last in the list of sphinx_languages parameters of sphinx_options.ini file. |
| Информация |
|---|
| Installing new dictionary full database reindexing happens. |
|