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 starting
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
Builds the evidence index, which links people to results and maps user connections.
graph
Builds the graph of connections between users.
manageremployees
Provides details of manager relationships so that people's relationships through their management can be identified. For example, when two people share a second line manager.
Generates index documents for each used tag and stores the list of users that have used that tag.
taggedby
Creates relationships between the users who have tagged each other's profiles.
communitymembership
Creates relationships between the users who are members of the same community.
Note: Communities that have more than 100 members are skipped. These communities will not be recommended to users.
Procedure
To run a one-off social analytics indexing task...
- 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.
- 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
});