fixlength

class FixLengthCmd[source]

Bases: pimlico.cli.subcommands.PimlicoCLISubcommand

Under some circumstances (e.g. some unpredictable combinations of failures and restarts), an output corpus can end up with an incorrect length in its metadata. This command counts up the documents in the corpus and corrects the stored length if it’s wrong.

command_name = 'fixlength'
command_help = "Check the length of written outputs and fix it if it's wrong"
add_arguments(parser)[source]
run_command(pipeline, opts)[source]
count_pimarcs(output)[source]