Reset Search Index in Exchange 2013

I have corrupted indexes in my Exchange 2013 server and I have having trouble figuring out how to reset them.

I found information on how to do it here:

http://technet.microsoft.com/en-us/library/ee633475.aspx

They tell me this: "If the mailbox database copy is the only copy, Exchange Search must create a new content index catalog. You can use the ResetSearchIndex.ps1 script to do this."

It is in fact the only copy and so I have to use this option, the problem is that they don't give any information on how to run it because it will not run in Powershell. Other articles about 2010 show that I need to go to the scripts directory and run it from there, however this script is not in my script directory on my Exchange 2013 server.

Thoughts?


Solution 1:

The ResetSearchIndex.ps1 script does not exist in 2013 so you have to do it manually. Instead of deleting the folder containing the index files (the one with the long GUID), you can rename it (after stopping the HostControllerService). When you restart the service it will create a new folder.

You can run the command:

    Get-MailboxDatabaseCopyStatus -Server <servername>| FL Name,*Index*

to see the status of the indexes BUT be patient as it may take a few minutes for the system to show the index crawling is active again.

I have done this on 2 mailbox databases.