Enable and disable indexing tasks 

Use SearchService administrative commands to enable and disable the tasks defined in the Home page database.


Before you begin

To use SearchService administrative commands, use the wsadmin client. See Starting the wsadmin client for information about how to start the wsadmin command-line tool.


Procedure

To enable or disable scheduled tasks in the Home page database...

  1. From the dmgr host:

      cd $DMGR_PROFILE/bin
      ./wsadmin.sh -jython
      execfile("searchAdmin.py")

      If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, pick the node where the file is stored.

  2. Use the following commands to disable and re-enable indexing tasks.

      SearchService.disableIndexingTask(String taskName)

        Disables the indexing task with the specified name.

        This command takes a single argument:

        • taskName. The name of the task to be disabled. This argument is a string value.

        Use this command affects the indexing process as follows:

        • When the command is run before the indexing task fires, the indexing operation is prevented from starting.

        • When the command is run during the indexing operation for an application, the Search application stops indexing.

        Results for the current application that is being indexed are discarded but, if, as part of an indexing task, some applications have been successfully crawled, those applications are up-to-date in the index. For example, if a task is fired that is to index Bookmarks, Blogs, and Activities (in that order) and the disable command is called while Blogs is being indexed, when the task is enabled again, Blogs and Activities resume indexing at the same point as the previously-called task. Disabled tasks remain disabled until they are re-enabled.

        For example:

        SearchService.disableIndexingTask("mine")

      SearchService.enableIndexingTask(String taskName)

        Re-enables the indexing task with the specified name. This command uses the current schedule.

        This command takes a single argument:

        • taskName. The name of the task to be enabled. This argument is a string value.

        For example:

        SearchService.enableIndexingTask("mine")


Parent topic

Configure scheduled tasks

Related concepts
Scheduling tasks

Related reference
SearchService commands


   

 

});