index.pl

This feature is not available to users of the Squiz Experience Cloud version of Funnelback.

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

$ index.pl <collection config> [-reindex] [-instant-update]
ON THIS PAGE

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 PADRE over the "offline/data" subdirectory of the collection’s root directory ($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 data root will be ignored. Instead, a custom data directory live/secondary-data will be used.

See also

© 2015- Squiz Pty Ltd