Run ant index in the mobile directory to index the content. Running ant mobile will do the indexing as part of the process as well.
Here's some detailed information about invoking the indexer. The indexing process is pretty smooth, so probably you doesn't need to be concerned with following details. Mobile Ant script does all the needed bits.
Following should be in the CLASSPATH.
webhelpindexer.jar
,lucene-analyzers-3.0.0.jar
,lucene-core-3.0.0.jar
- These three are available in the extensions/ directory of docsbook-xsl-1.76.1, and is automatically fetched to the mobile's Ant script. Go for a XSL snapshot if you can which contains the latest version http://docbook.sourceforge.net/snapshot/xercesImpl.jar
,xml-apis.jar
- These two comes by default with Ant 1.8.0 or prior versions. These are available under /usr/share/java directory of Linux distributions as well. Else, you may have to download, and put them tojre/lib/endorsed
.
The main class is
com.nexwave.nquindexer.IndexerMain
for the version 1.76.1+. It'scom.nexwave.nquindexer.IndexerTask
for the versions 1.76.0 and 1.76.1.Needs two parameters as command-line arguments:
The folder where the files to be indexed reside
(Optional) language. defaults to "en". See build.properties for details
Note
We have changed the way we invoke the webhelp indexer from the Ant Task to
indexertask
to direct invocation. This seems to have remove theCLASSPATH
issue some people were having.
To build the indexer, you must have installed the JDK version 1.5 or
higher and set the ANT_HOME
environment variable.