Search::Tools 0.01 reviewDownload
Search::Tools are tools for building search applications. SYNOPSIS use Search::Tools; my $re = Search::Tools->regexp(quer
Search::Tools are tools for building search applications.
my $re = Search::Tools->regexp(query => 'the quick brown fox');
my $snipper = Search::Tools->snipper(query => $re);
my $hiliter = Search::Tools->hiliter(query => $re);
for my $result (@search_results)
print $hiliter->light( $snipper->snip( $result->summary ) );
Search::Tools is a set of utilities for building search applications. Rather than adhering to a particular search application, the goal of Search::Tools is to provide general-purpose methods for common search application features. Think of Search::Tools like a toolbox rather than a hammer.
Parsing search queries for the meaningful keywords
Rich regular expressions for locating keywords in the original indexed documents
Contextual snippets showing query keywords
Highlighting of keywords in context
Search::Tools is derived from some of the features in HTML::HiLiter and SWISH::HiLiter, but has been re-written with an eye to accomodating more general purpose features.
Perl 5.8 or later is required. This is for full UTF-8 support.
Search::Tools 0.01 keywords