Difference between revisions of "HowTos/RebuildIndex"

From Scalix Wiki
Jump to: navigation, search
 
m (added naviagtion to top of page)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=Rebuilding the search indexes=
+
[[Scalix Wiki]] -> [[How-Tos]] -> '''Rebuilding the Index'''
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:
+
When upgrading Scalix 11 versions, it can be useful to recreate some text indexes - particularly to improve indexing of certain attachment-types, such as Excel documents. 
  
# Shutdown the Scalix Mail Server and Scalix Tomcat:
+
However, the indexing process will consume more system resources than normal server operations; consider whether to run this procedure, at your discretion. 
 +
 
 +
(Alternately, you might reindex only specific users with demonstrable search problems w/ attachments indexed before Scalix 11.0.3.  Both procedures are described here.)
 +
 
 +
=Rebuilding the search indexes for all users=
 +
 
 +
To reset and recreate the indexes for the message store, use the following steps:
 +
 
 +
*Shutdown the Scalix Mail Server and Scalix Tomcat:
 
  /etc/init.d/scalix-tomcat stop; omshut
 
  /etc/init.d/scalix-tomcat stop; omshut
# Delete the index and the work queue files:
+
*Delete the index and the work queue files:
 
  rm -rf /var/opt/scalix/??/indexes/*
 
  rm -rf /var/opt/scalix/??/indexes/*
 
  rm -rf /var/opt/scalix/??/s/indexwork/*
 
  rm -rf /var/opt/scalix/??/s/indexwork/*
# Restart the Scalix Mail Server and Scalix Tomcat:
+
*Restart the Scalix Mail Server and Scalix Tomcat:
 
  /etc/init.d/scalix-tomcat start; omrc
 
  /etc/init.d/scalix-tomcat start; omrc
# Kick off the Indexing:
+
*Initiate Indexing for the message store:
 
  sxmkindex -r 0
 
  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.
+
=Rebuilding the search index for a specific user=
 +
 
 +
To reset the index for a particular user:
 +
 
 +
*Identify the user's unique index id
 +
omshowu -n "User Name" | grep ^SIS | cut -d "/" -f 4
 +
*Delete the user's index directory
 +
rm -Rf /var/opt/scalix/??/indexes/ID
 +
where ID was obtained from the previous step
 +
*Initiate indexing for the user's mailbox
 +
sxmkindex -r 0 "User Name"
 +
 
 +
'''Note''': The man page for sxmkindex contain further options, e.g. to run reindexing by user only. In addition, the Installation Guide has information on how to throttle indexer load on a large and loaded system using IDX_MAXLOAD and IDX_MINLOAD.

Latest revision as of 12:56, 14 October 2010

Scalix Wiki -> How-Tos -> Rebuilding the Index

When upgrading Scalix 11 versions, it can be useful to recreate some text indexes - particularly to improve indexing of certain attachment-types, such as Excel documents.

However, the indexing process will consume more system resources than normal server operations; consider whether to run this procedure, at your discretion.

(Alternately, you might reindex only specific users with demonstrable search problems w/ attachments indexed before Scalix 11.0.3. Both procedures are described here.)

Rebuilding the search indexes for all users

To reset and recreate the indexes for the message store, use the following steps:

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

Rebuilding the search index for a specific user

To reset the index for a particular user:

  • Identify the user's unique index id
omshowu -n "User Name" | grep ^SIS | cut -d "/" -f 4
  • Delete the user's index directory
rm -Rf /var/opt/scalix/??/indexes/ID

where ID was obtained from the previous step

  • Initiate indexing for the user's mailbox
sxmkindex -r 0 "User Name"

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