Run one-off social analytics indexing tasks 

Use the SearchService.sandIndexNow command to create a one-off indexing task for the social analytics service. The indexing task is scheduled to run once and only once, 30 seconds after being called.


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.


About this task

The social analytics indexing process includes the following five jobs. You can schedule these jobs individually or in a batch.

evidence

graph

manageremployees

tags

taggedby

communitymembership


Procedure

To run a one-off social analytics indexing task...

  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 command:

      SearchService.sandIndexNow(String jobs)

        Creates a one-off task that indexes the specified services 30 seconds after being called.

        This command takes a single argument:

        • jobs. The name, or names, of the jobs to be run when the task is triggered. This argument is a string value. To run multiple jobs, use a comma-delimited list. The following values are valid: evidence, graph, manageremployees, tags, taggedby, and communitymembership.

        For example:

        SearchService.sandIndexNow("evidence,graph,manageremployees,tags,taggedby,communitymembership")


Parent topic

Configure indexing tasks for the social analytics widgets


   

 

});