HowTos/RebuildIndex

From Scalix Wiki
Revision as of 17:47, 27 April 2007 by Dkelly (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Rebuilding the search indexes

Scalix 11.0.3 and 11.0.4 have implemented a number of improvements in the indexing process. Therefore, when upgrading from versions of Scalix 11 earlier than 11.0.3, it can be necessary to recreate the full-text index. The indexing process will consume more system resources than normal server operations; therefore it is recommended to consider whether to run this procedure or not. Also, we recommend to run this procedure at times of low system usage:

To reset and recreate the index, use the following steps:

  1. Shutdown the Scalix Mail Server and Scalix Tomcat:
/etc/init.d/scalix-tomcat stop; omshut
  1. Delete the index and the work queue files:
rm -rf /var/opt/scalix/??/indexes/*
rm -rf /var/opt/scalix/??/s/indexwork/*
  1. Restart the Scalix Mail Server and Scalix Tomcat:
/etc/init.d/scalix-tomcat start; omrc
  1. Kick off the Indexing:
sxmkindex -r 0

Note: The man page for sxmkindex contain further options, e.g. to run reindexing by user only. In addition, the Admin Guide has information on how to throttle indexer load on a large and loaded system.