Subject: | html_highlight doesn't seem to work |
Using "DBIx-SearchBuilder-0.28" with "perl, v5.10.0 built for
i486-linux-gnu-thread-multi" running on "Linux apocalypse 2.6.26-1-486
#1 Wed Nov 26 18:28:42 UTC 2008 i686 GNU/Linux" (Debian Lenny).
Background: I have a wiki site, build an index with DBIx::TextIndex.
Searching works like a charm! :) Now I want to create a paragraph of
google-like summary for each hit with HTML::Highlight.
When I'm using $index->html_highligh(), as described in the man page and
the way it appears in the referenced example, html_search.cgi, I get the
following error message:
Can't use an undefined value as an ARRAY reference at
/usr/local/lib/perl/5.10.0/DBIx/TextIndex.pm line 1023.
This seems to stem from the fact that $self->{QUERY_HIGHLIGHT} (and
$self->{QUERY_PHRASES}) are never mentioned elsewhere and are thus
undefined.