Author image Marvin Humphrey
and 1 contributors

NAME

KinoSearch::Highlight::Formatter - Format highlighted bits within excerpts.

SYNOPSIS

    # abstract base class

DESCRIPTION

Formatter objects serve one purpose: they highlight pieces of text within an excerpt. The text might be a single term, or it might be a phrase.

METHODS

highlight

    my $highlighted = $formatter->highlight($text);

Abstract method. Highlight text -- by surrounding it with asterisks, html "strong" tags, etc.

COPYRIGHT

Copyright 2006-2007 Marvin Humphrey

LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch version 0.20.