Catmandu::Store::Lucy(3pm)

Catmandu::Store::Lucy3pm

A searchable store backed by lucy

Usage

    use Catmandu::Store::Lucy;
    my $store = Catmandu::Store::Lucy->new(path => '/path/to/index/');
    my $book = $store->bag->add({ title => 'Advanced Perl' });
    printf "book stored as %s\n", $book->{_id};
    $store->bag->commit;
    $bag->get($id);
    # all bags are iterators
    $bag->each(sub { ... });
    $bag->take(10)->each(sub { ... });
    my $hits = $bag->search(query => 'perl');
    # hits is an iterator
    $hits->each(sub {
        say $_[0]->{title};
    });
    $bag->delete($id);
    $bag->delete_by_query(query => 'perl');
    $bag->delete_all;
    $bag->commit;

Version

Version 0.0101

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

Author

Nicolas Steenlant, "<nicolas.steenlant at ugent.be>"

From libcatmandu-store-lucy-perl 0.0101-5 in Debian 9 (Stretch). Parsed by carta from the page's man source.