Restore the Search index 

When you create a backup copy of the Search index, you can use this copy to restore the index in the event of loss or corruption. You must restore the backup consistently for all the nodes in your deployment.


Before you begin

For information about creating a backup copy of the Search index, see Backing up the Search index.


About this task

Note: IBM Connections applications maintain delete and access-control update information for a maximum of 30 days. Indexes that are more than 30 days old are not considered suitable for restoration because they might contain obsolete or orphan content.


Procedure

To restore the Search index in the event of loss or corruption...

  1. Disable any regular indexing tasks that you have configured.

    1. To list the indexing tasks, enter the following command:

        SearchService.listIndexingTasks()

    2. To disable a task, enter the following command:

        SearchService.disableIndexingTask(String taskName)

        For example:

        SearchService.disableIndexingTask('15min-search-indexing-task')

        There is only one indexing task by default.

  2. To prepare the HOMEPAGE database to successfully load restored indexes on each node, enter the following command:

      SearchService.notifyRestore()

  3. Stop all Search servers.

  4. Delete the contents of the index directory and all its subdirectories from the IBM Connections Search data directory.

      This step should be performed on each Search node.

  5. Copy the backup index and all its subdirectories into the Search directory.

      This step should be performed on each Search node.

  6. Restart the Search servers.

  7. Re-enable your indexing task or tasks using the SearchService.enableIndexingTask command.

      For example:

      SearchService.enableIndexingTask('15min-search-indexing-task')

      The next indexing task to run resumes indexing at the point at which the restored index was last successfully indexed.


Parent topic

Backup and restore

Related concepts
Backing up the Search index


Related tasks


Backing up the Search index using wsadmin commands
Backing up the Search index manually
Starting the wsadmin client
Enable and disable indexing tasks
Listing scheduled tasks


   

 

});