IMPORTANT: added -z option to rebuild_zebra.pl
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 25 Mar 2008 12:30:42 +0000 (07:30 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 25 Mar 2008 12:58:01 +0000 (07:58 -0500)
commita5576b8dfe376df6328fa9f83a7c55d2c742fb7c
treeaf4aed24019a0e54d9191f6fcfe96ef214440a8f
parent57d128f72781fc854936ab0c4e8dffde167108bc
IMPORTANT: added -z option to rebuild_zebra.pl

The -z option, when used in conjunction with -a and/or -b,
selects the records to reindex from the zebraqueue table.
Both record updates and record deletes are handled.

-z is cannot be used with -s or -r: the updated records
must always be freshly exported, and if zebraqueue
is to be processed, it's assumed that you don't want
to drop the Zebra index first.

This means that rebuild_zebra.pl -b -a -x can be
used as a cronjob to update the indexes periodically; it
is believed that this will offer much better indexing
performance on some setups as compared to zebraqueue_daemon.pl,
which uses Z39.50 extended services to send record updates
to Zebra.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
misc/migration_tools/rebuild_zebra.pl