[KinoSearch] ORQuery dislikes Perl Compiler classes

webmasters at ctosonline.org webmasters at ctosonline.org
Wed Jun 3 09:50:09 PDT 2009


On Jun 1, 2009, at 12:52 PM, webmasters at ctosonline.org wrote:

> The good news is that the latest version includes List::Util::XS, to
> avoid precisely this problem.

Except that you have to ‘use List::Util::XS 1’ (with a dummy version  
number [anything below 1.22 will do]), because ‘use List::Util::XS’  
won’t do the trick. :-(

> [T]he test I sent you works now on both machines. The original
> script it was reduced from is still failing, but if I change it to use
> a RAMFolder as in the test, it works. So I think the index needs to be
> regenerated (it was made with 4625). This is a several hour process
> (no, KinoSearch is not the bottleneck), which I’ll run at night. I’ll
> try again tomorrow.

There was a problem with the script, so I had to run it overnight  
again. (It uses bandwidth, which I have to share with others, so it  
has to be at night.)

And then it turns out there was nothing wrong with the index.

The problem is that, if highlight_spans returns undef instead of [],  
we get another bus error. This is easy enough to work around, but  
‘return [] unless ...’ is a unintuitive. And it seems your intention  
was to support undef:

------------------------------------------------------------------------
r4631 | creamyg | 2009-05-26 16:27:46 -0700 (Tue, 26 May 2009) | 3 lines

Fix segfaulting bug in Host_callback_obj when the supplied argument is
something other than either a KinoSearch object or undef.

------------------------------------------------------------------------

If you don’t have time or don’t want to fix this, I’ll release another  
KSx::Search::RegexpTermQuery.


Father Chrysostomos




More information about the kinosearch mailing list