
FileArchiveIndexer::Search

returns hash ref, each key is an abs path to a file, each value is an array ref with results
returns array ref to files foumd
argument is abs path of the match returns array ref with matches inside that file
my($page,$line,$content) = @{$s->result($abs_hit)};
returns database handle
perform the search
$i->execute('looking for this text');
Optional argument is array ref of paths to prune in, only inside those paths.

my $fai = new FileArchiveIndexer({ abs_conf => '/etc/faindexer.conf' });
my $results = $fai->search('my text');
my $files = $results->results_files;
for (@$files){
my $matches = $results->result($_);
print "file $_\n"
for (@$matches){
my($page, $line, $content) = @$_;
print "page $page, line $line, content [$content]\n";
}
}


Leo Charre leocharre at cpan dot org