Sample Code Sample Code: Build Search Index


To build the search index for a helpset for a specified locale and place it in the SearchIndex subdirectory, assuming the helpset is rooted at ${HOME}/helpset, and the html files are in the html subdirectory:

setenv JHHOME <path where JavaHelp 1.1 is installed>
setenv JAVA_HOME <path where the JDK is installed>
setenv PATH ${JAVA_HOME}/bin:${PATH}
cd ${HOME}/helpset
rm -rf locale/SearchIndex
${JHHOME}/javahelp/bin/jhindexer -locale locale -db locale/SearchIndexlocale locale/html/*