Marcus Ramberg

NAME

Catalyst::Model::Plucene - Plucene Model Class

SYNOPSIS

    # lib/MyApp/Model/Plucene.pm
    package MyApp::Model::Plucene;

    use base 'Catalyst::Model::Plucene';

    __PACKAGE__->config( path => '/tmp/myindex' );

    1;

    my $plucene = $c->comp('MyApp::Model::Plucene');

    $plucene->add(
        $id1 => { $field => $term1 },
        $id2 => { $field => $term2 },
    );

    my @results = $plucene->search($search_string);

    $plucene->optimize;

DESCRIPTION

This is the Plucene model class.

new

Sets path from model config. Defaults to /tmp/index

SEE ALSO

Catalyst, Plucene::Simple

AUTHOR

Sebastian Riedel, sri@cpan.org Marcus Ramberg, mramberg@cpan.org

COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.




Hosting generously
sponsored by Bytemark