__PACKAGE__->mk_accessors(qw(
path
database
+ input
encoding
clean
$self->encoding( 'ISO-8859-2' ) unless $self->encoding;
+ ## FIXME we shouldn't re-create whole KinoSearch index every time!
+ $self->clean( 1 );
+
if ( ! -e $self->path ) {
mkpath $self->path || $log->logdie("can't create ", $self->path,": $!");
$log->info("created ", $self->path);
my $hash = $self->ds_to_hash( $ds, 'search' ) || return;
+ $hash->{id} ||= $id;
$hash->{database} ||= $self->database;
- $hash->{id} ||= $id;
+ $hash->{input} ||= $self->input;
foreach my $f ( keys %$hash ) {
if ( ref($hash->{$f}) eq 'ARRAY' ) {