[KinoSearch] Subclassable Highlighter
Father Chrysostomos
sprout at cpan.org
Mon Jan 28 15:39:43 PST 2008
On Jan 27, 2008, at 7:56 PM, Marvin Humphrey wrote:
> my $highlighter = KinoSearch::Highlight::Highlighter->new(
> searcher => $searcher,
> query => $query,
> );
Another problem with this approach is that the highlighter can only be
used for one query. If a second search is made with the same
$searcher, another highlighter is needed.
Unless $searcher can have a ->get_last_query method....
Also, when it comes to the highlight_data method, which class should
be responsible for removing duplicate HighlightSpans? Should I make
this a method of Highlighter itself?
I don’t remember whether I told you: I’m working on these changes to
Highlighter, and I think I will have a patch ready soon.
_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch
More information about the kinosearch
mailing list