Adding a service to the search index
Use administrative commands to update the Search index with data from a newly added service.
Before you begin
About this task
There are files in the search index for each service in HCL Connections. If a new service is added to HCL Connections, you must also add this service to the search index. To add a service to the index, create a next indexing task that contains the service to be added. If the new service has file content to be added, you must also create a File Content task.
Procedure
- Delete the current indexing task. For more information, see Deleting scheduled tasks for Search.
-
Create an indexing task for the service, use the
SearchService.addIndexingTask(). For more information, see Adding scheduled
tasks for Search.
Example
SearchService.addIndexingTask("customDogearAndBlogs", "0 0 1 ? * MON-FRI", "0 10 1 ? * MON-FRI", "dogear,blogs","true")
-
If a File Content task needs to be updated, take the following steps:
-
If a new File Content task is needed, run the
SearchService.addFileContentTask() command. For more information, see
SearchService commands.
Example:
SearchService.addFileContentTask("my-new-task", "0 0 1 ? * MON-FRI", "0 10 1 ? * MON-FRI", "wikis,files","true")