index.pl

This feature is not available in the Squiz DXP.

index.pl calls PADRE to index a collection’s documents.

$ index.pl <collection config> [-reindex] [-instant-update]
Table of Contents

Arguments

  • The collection configuration file must be specified, and must be a filesystem path to an existing, readable and valid collection configuration file.

  • -reindex may be specified

  • instant_update may be specified

Function

With no optional flags, index.pl will run the padre indexer over the offline/data for a collection ($SEARCH_HOME/data/$COLLECTION_NAME). It will log output to the offline/log subdirectory and place the produced indexes in the offline/idx subdirectory.

The meanings of the optional flags are explained below.

-reindex

Create a new index in a temporary directory, and then activate it be copying it into the live idx directory. The query cache is then reloaded and the spelling dictionary recreated. This allows reindexing of live data with minimal interruption to live query processing.

-instant-update:

This instructs the index script that an instant update is being performed, which means that the indexer must be called using the secondary update option, and the usual collection data folder will be ignored. Instead, a custom data directory live/secondary-data will be used.

See also