Thursday, April 10, 2014

Re-indexing Search in Tridion 2013 SP1

The old reindexing tool has been retired as we moved into Tridion 2013. In this new version, there are many commands that can be executed via PowerShell scripts, including a command to reindex search in the CME.

Initially, I just ran Sync-TcmSearchIndex. This command did absolutely nothing in my case. Found out there's a way to query the database by going thru each publication one-by-one.

(Get-TcmRepository).ID | Sync-TcmSearchIndex -verbose


Search finally worked again after executing the above command!

3 comments:

  1. Great subject to post on Jin!

    Quick question, on a 2013 SP1 HR1 instance, do you have suggestions on how periodically to run this script?

    Does this coincide with db maintenance scripts here: http://docs.sdl.com/LiveContent/content/en-US/SDL%20Tridion%20full%20documentation-v1/GUID-5863DEDC-1511-4333-A0C6-644B67403634 or is this completely separate?

    If so, did you run these commands immediately after any scheduled db maintenance scripts?

    ReplyDelete
    Replies
    1. I would run this after any DB backup/restore and probably schedule it to run after the normal weekly DB maintenance. The documentation you referenced seem to be Oracle specific. I would check with support to see if there's anything specific for MSSQL and how the powershell scripts call on the sql scripts

      Delete
    2. This comment has been removed by the author.

      Delete