X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=bin%2Freindex.pl;h=67e4976f945040e65bd13d19b03bc68b33472c46;hp=a3079fb34d9243185072ab31e349abf5b27b8826;hb=7cfd357a4adad76aa368d2198f3756c83e86a708;hpb=5e43bc51335fc81d176e1930ea22197035721f33 diff --git a/bin/reindex.pl b/bin/reindex.pl index a3079fb..67e4976 100755 --- a/bin/reindex.pl +++ b/bin/reindex.pl @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl -# $Id: reindex.pl,v 1.2 2007-03-02 16:12:39 mike Exp $ +# Run as: +# perl -I../lib reindex.pl user=admin,password=SWORDFISH,localhost:8018/IR-Explain---1 use strict; use warnings; @@ -23,10 +24,7 @@ foreach my $i (1..$n) { print " $i/$n (", int($i*100/$n), "%)\n" if $i % 50 == 0; my $rec = $rs->record($i-1); my $xml = $rec->render(); - open F, ">$i.xml" or die "can't open\n"; - print F $xml; - close F; - #update($conn, $xml); + update($conn, $xml); } print " $n/$n (100%)\n" if $n % 50 != 0; commit($conn);