Applies to: Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007 Topic Last Modified: 2007-07-11
This topic describes two ways to rebuild the full-text index catalog, programmatically via an Exchange Management Shell script, and by manually deleting the full-text index catalog directory.
To programmatically rebuild the full-text index catalog, run the ResetSearchIndex.ps1 script provided at <drive>:\Program Files\Microsoft\Exchange Server\Scripts\.
To manually rebuild the full-text index catalog, stop the Microsoft Exchange Search Service, delete the old catalog, and then restart the service. This procedure forces the server to re-create the full-text index catalog.
To perform the following procedures, the account you use must be delegated membership in the local Administrators group.
For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.
Start the Exchange Management Shell.
Remove the index directories that are associated with specified mailbox databases:
ResetSearchIndex.ps1 [-force] <dbname> [<dbname>]
Remove the index directories that are associated with all mailbox databases:
ResetSearchIndex.ps1 [-force] -all
Stop the Microsoft Exchange Search Service by running the following command:
Net Stop MsExchangeSearch
Delete the full-text index catalog directory.
There are scripts located in the \Exchange Server\Scripts directory that can help you to administer and manage Exchange Search. Using the Exchange Management Shell, you can run the following scripts:
GetDatabaseForSearchIndex IndexDirectoryName1 IndexDirectoryName2
GetSearchIndexForDatabase MailboxdatabaseName1 MailboxdatabaseName2 -All
You can use the following example to verify that you are targeting the appropriate catalog directory:
GetSearchIndexForDatabase -All
Start the Microsoft Exchange Search Service by running the following command:
Net Start MsExchangeSearch