Purging content from the index
Use the SearchService.deleteFeatureIndex command to purge content for a specific application from the Search index in a single-node environment.
Before you begin
About this task
When you run the SearchService.deleteFeatureIndex command, the command removes indexed content for the specified application from the node in your deployment. Indexing tasks are automatically disabled at the start of this process and re-enabled when the process is complete, regardless of whether the tasks were disabled initially.
Procedure
-
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 to remove and purge content from
a specified application from the Search index.
- SearchService.deleteFeatureIndex(String applicationName)
- Removes and purges the content for the specified application from the Search index.Important: Only use this command if you are uninstalling an application from HCL Connections. After you run the command, the content from the application that has been deleted cannot be reindexed.This command takes a string value, which is the name of the application whose content is to be deleted. The following values are valid:
- activities
- blogs
- calendar
- communities
- dogear
- ecm_files
- files
- forums
- people_finder
- profiles
- status_updates
- wikis
For example:SearchService.deleteFeatureIndex("activities")
When the command runs successfully, 1 is printed to the wsadmin console. If the command does not run successfully, 0 is printed to the wsadmin console.