Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u53

  

Valid HTML 4.01!

 

Made with Mif2Go

10 Generating JavaHelp or Oracle Help  > 10.4 Providing full-text search for JavaHelp / Oracle Help > 10.4.2 Creating a search index for JavaHelp


10.4.2 Creating a search index for JavaHelp

JavaHelp utility program JHIndexer creates a search index for JavaHelp, and places the search index in a subfolder called JavaHelpSearch. You can have Mif2Go run JHIndexer, or you can run it yourself. In addition to creating a search index, you must also provide a link to the search index from the helpset file; see §10.4.1 Including a search-index link in the helpset file.

Let Mif2Go create FTS

To have Mif2Go automatically run JHIndexer:

[JavaHelpOptions]

; FTSCommand = for Sun Java Help, path to jhindexer, such as:

FTSCommand = D:/jh2.0_01/jh2.0/javahelp/bin/jhindexer

The value of FTSCommand must include an absolute path to the folder where the JHIndexer program is installed on your system. If the path includes spaces, you must enclose it in double quotes. For example:

[JavaHelpOptions]

FTSCommand = "G:/JH/jh2.0 01/jh2 0/javahelp/bin/jhindexer"

Note: Do not enclose parameters in quotes.
Use backslashes as separators in path-name parameters.
Use a dash ("-") instead of a forward slash to prefix a command option.

When you specify a value for FTSCommand, after generating output files for JavaHelp, Mif2Go first removes any search-index folder previously created by JHIndexer, then uses the command to run JHIndexer and produce a new search index.

If you also specify a value for [Automation]WrapPath, Mif2Go copies all needed files from the project folder to the JavaHelp folder structure before running JHIndexer; see §10.2.7.2 Letting Mif2Go set up the folder structure and copy files.

Create FTS yourself

If you do not specify a value for FTSCommand, you must run JHIndexer yourself, from the folder where your helpset file is located, and specify the folder where the HTML files are located. For example, at a Windows command prompt:

D:

cd \path\to\MyOutput\help

del /f /q JavaHelpSearch

path\to\JavaHelp\files\bin\jhindexer html

If you are using a folder structure such as the following for your project, run JHIndexer from the Help folder:

MyDoc    (FrameMaker files)

..MyOutput (Mif2Go files)

....Help    (JHM, HS, TOC, Index; run JHIndexer from this folder)

......HTML

......Graphics

Your structure ends up looking like this:

MyDoc    (FrameMaker files)

..MyOutput (Mif2Go files)

....Help    (JHM, HS, TOC, Index)

......JavaHelpSearch (Created by JHIndexer)

......HTML

......Graphics

JavaHelp search caveats

It is best to remove any previous search-index folder before you run JHIndexer to create a new folder. If a previous attempt to create a search index failed, further attempts will also fail if the failed search-index folder is present.

You must run JHIndexer from the folder where the helpset file is located. If you try to run JHIndexer from within the HTML folder, JHIndexer will put the JavaHelpSearch folder inside the HTML folder. If you try to run it from any other folder, you get strange effects in the Contents panel.

See also:

§6.2.4 Compiling and distributing Help systems

§10.2.7.2 Letting Mif2Go set up the folder structure and copy files

§10.2.7.5 Specifying a path for search-index links

§10.4.1 Including a search-index link in the helpset file



10 Generating JavaHelp or Oracle Help  > 10.4 Providing full-text search for JavaHelp / Oracle Help > 10.4.2 Creating a search index for JavaHelp