[KinoSearch] bad intialization in SegTermDocs.pm

Marvin Humphrey marvin at rectangular.com
Thu Apr 10 20:02:56 PDT 2008




On Apr 10, 2008, at 5:32 PM, jack_tanner at yahoo.com wrote:

> I'm working on a test case. In the mean time, here's a test case for  
> a different issue. (Could be an issue with the wetware, too...)
>
> Yields: Can't call method "get_score" on unblessed reference at ks- 
> test-case.pl line 33.

This is an area where the maint and devel branches diverge.  Maint  
returns a simple hashref with extra entries.  SVN trunk returns a  
HitDoc object overloaded to behave like a hashref, but with accessors  
instead of hash entries for things like "score".

0.162:

   while ( my $hashref = $hits->fetch_hit_hashref ) {
     print "$hashref->{title}: $hashref->{score}\n";
   }

SVN trunk:

   while ( my $hit_doc = $hits->fetch_hit ) {
     my $score = $hit_doc->get_score;
     print "$hit_doc->{title}: $score\n";
   }

> I'm kind of tied down to 0.162 because that's what's available via  
> ActiveState PPMs. I really don't want to get into compiling my own  
> manually on Windows, and the app needs to deploy on Windows  
> (although I can develop on Linux).

Gotcha.  FWIW, Windows support will continue with 0.2x.  I did a bunch  
of work on restoring Windows compatibility over the last couple weeks,  
and now devel at least compiles again -- though we're getting "free to  
wrong pool" memory errors.  I think those are "canary in the coal  
mine" evidence of leaking objects making it to global destruction when  
they shouldn't; I need to find and fix some memory problems which are  
leaks on Unixen but errors on Windows.

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