cmwsidx
- NAME
- SYNOPSIS
- DESCRIPTION
- cmw.conf parameters used.
- OPTIONS.
- Signal handling.
- Compatibility.
- Modules used.
NAME
cmwsidx - Communniware search engine. Indexer.
SYNOPSIS
` cmwsidx [options]
DESCRIPTION
cmwsidx is used to maintain contents of communiware search engine's index tables performing three main tasks: 1) reindex changed items, 2) add new items to index, 3) remove rows from index table's that refers to items not existing now.
The current version is oriented on UdmSearch engine only.
cmwsidx creates lists of new, changed or lost items and then calls UdmSearch's indexer program to update it's index tables. You can chose, what category of items it will process (new, changed or lost), by default it processes all categories.
What items does it index.
All itmes which are: 1) having correct item_id 2) having 'Html' as their content type
=head1 Other...
Lock file.
A file cmwsidx.pid in standard communiware pid-file directory (RUNDIR/communiware) is used to indicate that cmwsidx is running now and prevent running more then one cmwsidx process. This file contents pid of currently running cmwsidx, so it can be used to killing the process. For example in such way:
kill `cat /var/run/communiware/cmwsidx.pid`
where /var/run is your stamdard path for pid-files.
cmw.conf parameters used.
- GRACE
- Items, written/changed less then GRACE seconds ago will not be (re)indexed. Useful if errors in text have been found just after it's publication. :)
- INDEXERSLEEP
- Numeric value. Specifies maximum available load average value. When load avetage exceedsthis value indexer will go sleep fo 60 seconds (see value of $std_sleep_time variable) to lower system loading.
-
It is safe to kill indexer this time.
-
By default indexer will NOT detect load average and will not go sleep.
OPTIONS.
- -a
- DO NOT add new items to index.
- -c
- Allows to specify an alternate config file. Thus you can use one machine for several separate Communiware instances, provided that this machine can connect to all neccessary databases.
- -d
- DO NOT delete obsolete rows from URL and DICT tables.
- -i
- (Re)index items immediately, do not use GRACE seconds delay after item's last change.
- -r
- DO NOT reindex items have been changed later then indexed.
- -s V
- Overrides INDEXERSLEEP cmw.conf parameter, using value V instead.
Signal handling.
There is a special handler for SIGINT and SIGTERM signals. cmwsidx periodically checks if such signals have been sent him and finish it's work in such case.
Compatibility.
Current version use traditional unix ``epoch begining'' date 01-01-1970. Porting Communiware to platform having another ``epoch begining'' date you need to change $li_expr value in reindex subroutine.
Modules used.
Sys::CpuLoad module from SPAN is used for cpu load tracing.