Reindexing search indexes

Use a reindex PowerShell script to reindex your search indexes. You can reindex all Publications, or select specific Publications to reindex.

Procedure

Do one of the following:
  • To reindex all Publications, from the PowerShell command prompt, enter the command Sync-TcmSearchIndex.
  • To reindex only some Publications, then pass the Content Manager URIs (unique identifiers) of the Publications you want to reindex as a TcmRepositoryIds parameter (an array) to Sync-TcmSearchIndex.
  • To reindex one Publication by name, make a call to Get-TcmRepository to obtain objects for all Publications, then filter out the Publication with the name you want and pass its ID to Sync-TcmSearchIndex. For example, to reindex only the Publication called MyPublication, execute the following command:

    (Get-TcmRepository | where-Object {$_.Title -match "MyPublication"}).Id | Sync-TcmSearchIndex
The search index is updated.