[KinoSearch] Subclassable Highlighter
Marvin Humphrey
marvin at rectangular.com
Wed Jan 30 16:23:26 PST 2008
On Jan 30, 2008, at 2:14 PM, Father Chrysostomos wrote:
> Here are
> • an untested patch for search.cgi and
> • a patch for the simple tutorial.
I've applied these as r2976 and r2977. Thanks!
The search.cgi code, I'll test sometime before the next release.
> BTW, does $invindexer->add_doc require a Doc object, or can it
> still be a hashref?
It can still be a hashref. In fact, in the entire test suite, I
think only t/602-boosts.t supplies a Doc object to InvIndexer, and
I'm expecting that most user code will be the same way. The only
reason you need a Doc object is if you want to use custom per-Doc
boosts.
my $doc = KinoSearch::Doc->new(
fields => \%fields,
boost => $custom_boost,
);
$invindexer->add_doc($doc);
Marvin Humphrey
Rectangular Research
http://www.rectangular.com/
_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch
More information about the kinosearch
mailing list