--- bin/reindex.pl 2007/02/21 20:22:07 64 +++ bin/reindex.pl 2007/03/14 20:02:19 110 @@ -18,13 +18,15 @@ print "indexing ", $coll->count, " items "; +my $search = Grep::Search->new(); + while ( my $i = $coll->next ) { - Grep::Search->add( $i, $i->in_feed->owner->id ); + $search->add( $i, $i->in_feed->owner->id ); print $i->id, ' '; } print "\n"; -Grep::Search->finish; +$search->finish;