Basic configuration parameters

Table C-4 describes the automatic indexing configuration parameters. The values in this table are used in the [Configuration] section of PortalSearchautoindexer.cfg. Each description column includes a sample key=value pair.

Table C-4: Configuration parameters

Key

Description

PollingPeriod

Specifies the time interval in milliseconds between each autoindexing poll.

PollingPeriod=5000

PollingMethod

Specifies whether the files to be processed by the indexing utility are read from a file or from a directory. The value of this parameter can be either:

  • 1 – file.

  • 2 – directory.

For example:

PollingMethod=2

When processing a large number of files on Windows, you must use file polling instead of directory polling. File polling simply looks at the names in a file, then processes them. This is more scalable because it does not require directory tree polling.

On UNIX, use “1,” and send the output to a file.

On Windows, make a directory listing, and set the following in the PortalSearch\autoindexer\PortalSearchautoindexer.cfg configuration file:

[configuration]
FilenameOutputMode=1

This prints a list of all the file names that would be processed in directory mode. All settings for directory polling, recursion, musthaves, canthaves, dates, and so on, are considered when listing the file names. Insert the PollingMethod key in the configuration section instead of in each job section. If you have more than one job, and you want to create more than one listing of file names, move the appropriate job to the top and run it. If you do not specify FilenameOutputMode, the file names print to stdout.

RemoveLogFileOnStart

Indicates whether to remove the log file before running the autoindexing utility. The value for this parameter can be:

  • 1 or on – yes

  • 0 or off – no

For example:

RemoveLogFileOnStart=0

The default value of this key value pair is off (0).

Number

The number of jobs that are to be performed by a particular indexing utility.

n

The name of job number “n”; n=0 for the first job.

MaxLogKBytes

The maximum size (in kilobytes) that the log file can reach before it is renamed as.log.previous and a new log file is created.