# my $tokenizer = KinoSearch::Analysis::Tokenizer->new( pattern => '\\w' );
sub new {
- my ( $class ) = @_;
+ my $class = shift @_;
+ my %Conf = @_;
my $schema = KinoSearch::Plan::Schema->new;
# $schema->spec_field( name => '_doc', type => $blob_type );
- my $index_path = '/tmp/kinosearch'; # FIXME
+ my $index_path = $Conf{KinoPath} || die "no KinoPath";
my $indexer = KinoSearch::Index::Indexer->new(
schema => $schema,