Running one-off social analytics scheduled tasks
Use the SearchService.sandIndexNow command to create a one-off scheduled task for the social analytics service. The task is scheduled to run once and only once, 30 seconds after being called.
Before you begin
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.
- tags
- 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 scheduled task, complete
the following steps:
-
Start the wsadmin client from one of the following directories on the system on which you
installed the Deployment Manager:
Linux:
app_server_root\profiles\dm_profile_root\bin
Windows:
where app_server_root is the WebSphere® Application Server installation directory and dm_profile_root is the Deployment Manager profile directory, typically dmgr01.app_server_root/profiles/dm_profile_root/bin
You must start the client from this directory or subsequent commands that you enter do not execute correctly.
- After the wsadmin command environment
has initialized, enter the following command to initialize the Search
environment and start the Search script interpreter:
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, you must pick the node where the file is stored.When the command is run successfully, the following message displays:Search Administration initialized
- Use the following command:
- SearchService.sandIndexNow(String jobs)
Creates a one-off social analytics 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.
SearchService.sandIndexNow("evidence,graph,manageremployees,tags,taggedby,communitymembership")