rebuild_elasticsearch.pl - inserts records from a Koha database into Elasticsearch
count] [-v|--verbose] [-h|--help] [--man]
Inserts records from a Koha database into Elasticsearch.
Specify how many records will be batched up before they're added to Elasticsearch. Higher should be faster, but will cause more RAM usage. Default is 5000.
Delete the index and recreate it before indexing.
Index the authorities only. Combining this with -b is the same as specifying neither and so both get indexed.
Index the biblios only. Combining this with -a is the same as specifying neither and so both get indexed.
Only index the supplied biblionumber, mostly for testing purposes. May be repeated.
Only index the supplied authority id, mostly for testing purposes. May be repeated.
Number of processes to use for indexing. This can be used to do more indexing work in parallel on multicore systems. By default, a single process is used.
By default, this program only emits warnings and errors. This makes it talk more. Add more to make it even more wordy, in particular when debugging.
Checks the index state and recreates it if requested.
Does the actual reindexing. $callback is a function that always returns the next record.
Checks some basic stuff to ensure that it's sane before we start.
Output progress information.
Will output the message if verbosity level is set to $level or more. Will not include a trailing newline automatically.