[KinoSearch] Retrieving $doc->set_boost() value at search time

henka at cityweb.co.za henka at cityweb.co.za
Fri Oct 27 01:58:23 PDT 2006




Hello all,

Given the following code which is used during index-time:

$doc->set_boost($boost_val);

Is there any way to retrieve this $boost_value value during search-time
for debugging purposes?

I tried:

while ( my $hit = $hits->fetch_hit_hashref ) {
  my $doc = $hit->get_doc;
  my $boost = $doc->get_boost;
  ...

Which produces this error:

"Can't call method "get_doc" on unblessed reference at..."

I also tried using "my $boost = $hit->get_boost;" but it yields the same
error.

I'm an old school C dude, so all this OO gives me cramps.


_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch




More information about the kinosearch mailing list