Authoring Oracle Help Systems | ![]() Contents | ![]() Previous | ![]() Next |
---|
A Java-based text search indexer is included with Oracle Help for Java. The indexer generates the .idx
files used for text searches within Oracle Help. Two versions are included, one for all content that is not in Japanese, and another for Japanese content.
This topic contains the following sections:
Run the indexer with JDK 1.1.7 or later. Performance will be greatly enhanced if you leave on the Java JIT (Just In Time Compiler). You should also be sure to increase the maximum heap size of the Java Virtual Machine, as shown in the examples below.
Include the OHJ Indexer JAR file (help-indexer-version.jar
) on your CLASSPATH by setting the CLASSPATH environment variable or by setting the CLASSPATH directly on the command line.
Run the indexer from the command prompt. The indexer supports the following command-line arguments:
[-l=locale] [-e=charset] dirname indexfilename
where
-l=locale
language_COUNTRY
or language_COUNTRY_VARIANT
. If the locale is not supplied, the system default locale is used.-e=charset
http://java.sun.com/products/jdk/1.1/docs/guide/intl/encoding.doc.html
dirname
indexfilename
For example,
java -mx64m oracle.help.tools.index.Indexer -l=en_US -e=8859_1 D:\MyHTMLFiles myIndex.idx
The above sets the Locale to be Language English, Country Unites States, sets the encoding to be 8859_1, and indexes the D:\MyHTMLFiles directory creating the myIndex.idx file as a result.
Include the OHJ Indexer JAR file (help-indexer-version.jar
) on your CLASSPATH by setting the CLASSPATH environment variable or by setting the CLASSPATH directly on the command line.
Run the indexer from the command prompt. The indexer supports the following command-line arguments:
[-e=charset] dirname indexfilename
where
-e=charset
http://java.sun.com/products/jdk/1.1/docs/guide/intl/encoding.doc.html
dirname
The base directory that contains the HTML files you want to index. The indexer will index all of the files under this directory (and it's subdirectories if any).
indexfilename
The name of the index file to generate.
For example:
java -mx64m oracle.help.tools.index.JapaneseIndexer -e=MS932 D:\MyHTMLFiles myIndex.idx
The above runs the JapaneseIndexer with the encoding set to be MS932
, and indexes the D:\MyHTMLFiles
directory creating the myIndex.idx
file as a result.
Copyright © 1996, 2004, Oracle. All rights reserved.