Running Collection Rebuild from Command Line [Oracle WebCenter Content]
As Oracle says The IdcCommand utility is a standalone Java application that executes Content Server services. For running this utility we need to provide a command file which will contains the specific tasks list and parameter needed to perform.
Below example will provide the steps for rebuilding the search collection by calling the CONTROL_SEARCH_INDEX service. [Service that updates or rebuilds the search index. Updates and rebuilds are performed automatically in a background thread.]
In case if we want to call fast collection rebuild first we need to create a file (test.hda ) like this –
@Properties LocalData
IdcService=CONTROL_SEARCH_INDEX
cycleID=rebuild
action=start
getStatus=1
fastRebuild=1
GetCurrentIndexingStatus=1
PerformProcessConversion=1
@end
<<EOF>>
After that we need to fire following command –
IdcCommand -f test.hda -u sysadmin -l test.log -c server
Before running this make sure you have added this entry in intradoc.cfg file-
IdcCommandServerHost=<IP_address_of_WCCServer>