The jhindexer creates a full-text search database used by the JavaHelp system full-text search engine to locate matches. You can use the jhsearch command to verify the validity of the database.
To build a full-text search database use the following commands:
Win32
jhindexer [options] [file | folder]*Solaris/SPARC
jhindexer [options] [file | folder]*If the argument is a folder, the folder is searched recursively for JavaHelp system content files.
The following options are available:
-c file | A configuration file name. See Config File below. |
-db dir | The name of the database output folder. By default the output folder is named JavaHelpSearch and is created in the current folder. |
-locale lang_country_variant
![]() |
The name of the locale as described in java.util.Locale. For example: en_US (English, United States) or en_US_WIN (English, United States, Windows variant). |
-logfile file | Captures jhindexer messages in a specified file. You can use this option to preserve jhindexer output on Win32 machines where the console window is dismissed after execution terminates. |
-nostopwords | Causes stopwords to be indexed in the full-text search database. |
-verbose | Displays verbose messages while processing. |
You can direct the JavaHelp system full-text search indexer to exclude certain words from the database index--these words are called stopwords. By default, the indexer ignores (does not index) the following stopwords when it encounters them in your help topics:
a all am an and any are as at be but by can could did do does etc for from goes got had has have he her him his how if in is it let me more much must my nor not now of off on or our own see set shall she should so some than that the them then there these this those though to too us was way we what when where which who why will would yes yet youYou can override the indexer's default stopword behavior in two ways:
You can use the config file to:
You can remove and prepend portions of the topic file names as they are stored in the search database. This is useful when the path to the topic files you use during development is different from the path the help system will later use to find the topic files during searches.
To remove a portion of the path name from all of the
indexed files:
Add the following line to the config file:
IndexRemove pathwhere path is the portion of the path you want removed.
For example, to change:
/public_html/JavaHelp/demo/docs/file.htmlto:
docs/file.htmladd the following line to the config file:
IndexRemove /public_html/JavaHelp/demo/
Add the following line to the config file:
IndexPrepend pathFor example, to change:
docs/file.htmlto:
my_product/install/docs/file.htmladd this line to the config file:
IndexPrepend my_product/install/
You can also explicitly specify a list of the names of the files you want indexed. In the config file, specify the list in the following format:
File filename File filename File filename . . .
You can specify your own list of stopwords to the indexer using the config file. When you specify your own list, the default stopword list is not used. You can specify a list of stopwords in two ways:
StopWords word, word, word...
StopWordsFile filenameStopWordsFile must contain a list of stopwords, one stopword per line.
See also: