Plucene::SearchEngine::Index is a higher level abstraction for Plucene.
SYNOPSIS
my $indexer = Plucene::SearchEngine::Index->new(
dir => "/var/lib/plucene"
);
my @documents = map { $_->document }
Plucene::SearchEngine::Index::File->examine("foo.html");
$indexer->index($_) for @documents;
This module makes it easy to write to Plucene indexes. It does so by providing an interface to the index writer which, in terms of complexity, sits between Plucene::Index::Writer and Plucene::Simple; it also provides a framework of modules for turning data into Plucene::Document objects, so that you don't necessarily have to parse them yourself. See "Document Frontends and Backends" for more on this.
Designed to be used with Plucene::SearchEngine::Query, these two modules aim to make it easy for anyone writing search engines based on Plucene.
METHODS
new
my $indexer = Plucene::SearchEngine::Index->new(
dir => "/var/plucene/foo",
analyzer => "Plucene::Analysis::SimpleAnalyzer",
);
This creates a new indexer; you must specify the directory to contain the index, and you may specify an analyzer to tokenize the data.
index
This adds a Plucene::Document to the index.
Product's homepage
Requirements:
· Perl