Using Command Line Tools

QuestAgent has a command-line interface that lets you rebuild index database once an index profile has already been created in the QuestManager environment.

There are two command line tools:

Indexer and Optimizer use the same index profile (indexing configuration file).

Indexing from the Command Prompt

To index from the command prompt, type the following command:

  QuestIndexer -c IndexProfile.qip

where –c specifies the configuration profile and IndexProfile.qip is the profile. In the directory specified by the WorkingDir configuration parameter, Indexer creates raw index files. Raw index databases have to be optimized before use.

Optimizing from the Command Prompt

To run the Optimizer from the command prompt, type the following command:

  QuestOptimizer -c IndexProfile.qip

where –c specifies the configuration profile and IndexProfile.qip is the profile. In the directory specified by the OutputDir configuration parameter, Optimizer creates index data files ready for use with QuestAgent search applets.

Copy the final index files to your publishing directory.

 

Running indexing tools from Java

If QuestAgent installer is not available for your platform you can run indexing tools provided with QuestAgent from the command line.

1. Add lib directory and all .jar files to your CLASSPATH environment variable.

2. Start QuestManager with:

java com.jobjects.quest.QuestManager

Exact commands depend on Java VM installed on your machine. Indexing tools provided with QuestAgent are compatible with both JDK/JRE 1.1 and JDK 1.2 (Java 2 platforms).

To build your indexes from the command line you can use QuestIndexer (com.jobjects.QuestIndexer Java class) and QuestOptimizer (com.jobjects.QuestOptimizer Java class) tools.

 


Copyright © 1997, 1999 JObjects - All right reserved.
contact@jobjects.com