[KinoSearch] Subclassable Highlighter

Marvin Humphrey marvin at rectangular.com
Tue Jan 29 17:48:36 PST 2008




On Jan 29, 2008, at 4:40 PM, Father Chrysostomos wrote:

>
>>     {  start_offset => 15, end_offset => 22, weight 1.2 }
>>     {  start_offset => 15, end_offset => 30, weight 3.5 }
>
> I see this is not the same weight that the highlighter is currently  
> using (1 for each TermQuery, the number of terms for each  
> PhraseQuery). Should we use $query->make_weight->get_value?

Yes, I was thinking something like that.  It gets a little convoluted.

I think we should divide and conquer, focusing first on HitDoc  
(almost done), HighlightSpan (trivial) and HeatMap (harder).

>> I'm working on the Doc class right now.  You should see some  
>> commits over the next few hours.
>
> Do you intend to make $reader->fetch_doc return a HitDoc?

Yes, exactly.  That means a HitDoc has to implement serialization so  
that it can be sent across a network, which is tricky.  I'm building  
up to that.

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