--- trunk/lib/WebPAC/Output/KinoSearch.pm 2006/06/26 16:39:51 536 +++ trunk/lib/WebPAC/Output/KinoSearch.pm 2006/08/01 17:26:55 609 @@ -17,11 +17,11 @@ =head1 VERSION -Version 0.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 SYNOPSIS @@ -90,7 +90,9 @@ $self->{encoding} ||= 'ISO-8859-2'; - $log->info("using index $self->{index_path} with encoding $self->{encoding}"); + $self->{clean} = 1 if (! -e $self->{index_path} . '/segments'); + + $log->info("using", $self->{clean} ? ' new' : '', " index $self->{index_path} with encoding $self->{encoding}"); my $analyzer = KinoSearch::Analysis::PolyAnalyzer->new( language => 'en' );