8 print STDERR "Usage: $0 target\n";
12 my $conn = new ZOOM::Connection($ARGV[0]);
13 $conn->option(preferredRecordSyntax => "xml");
14 $conn->option(elementSetName => "zebra::data");
15 my $rs = $conn->search_pqf('@attr 1=_ALLRECORDS @attr 2=103 ""');
18 print "$0: reindexing $n records\n";
19 foreach my $i (1..$n) {
21 print " $i/$n (", int($i*100/$n), "%)\n" if $i % 50 == 0;
22 my $rec = $rs->record($i-1);
23 my $xml = $rec->render();
26 print " $n/$n (100%)\n" if $n % 50 != 0;
31 # These might be better as ZOOM::Connection methods
35 my $p = $conn->package();
36 $p->option(action => "specialUpdate");
37 $p->option(record => $xml);
45 my $p = $conn->package();