Search::Tools 0.01 review

Download
by rbytes.net on

Search::Tools are tools for building search applications. SYNOPSIS use Search::Tools; my $re = Search::Tools->regexp(quer

License: Perl Artistic License
File size: 0K
Developer: Peter Karman
0 stars award from rbytes.net

Search::Tools are tools for building search applications.

SYNOPSIS

use Search::Tools;

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.

Examples include:

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.

Requirements:
Perl 5.8 or later is required. This is for full UTF-8 support.
Class::Accessor::Fast
Search::QueryParser

Search::Tools 0.01 keywords