[KinoSearch] basic search example - cant create object

Klaus Gruen klaus_gruen at yahoo.com
Thu Jan 25 23:19:14 PST 2007


Hey Marvin,

I downloaded your .14 copy to a random directory and just ran the first t file you suggest and get this error:

E:\>perl e:\tmp_testing\KinoSearch-0.14\t\501-termquery.t
1..7
ok 1 - use KinoSearch::Search::TermQuery;
ok 2 - use KinoSearch::Index::Term;
ok 3 - use KinoSearch::Searcher;
Can't locate KinoSearchTestInvIndex.pm in @INC (@INC contains: t E:/Perl/lib E:/
Perl/site/lib .) at e:\tmp_testing\KinoSearch-0.14\t\501-termquery.t line 13.
BEGIN failed--compilation aborted at e:\tmp_testing\KinoSearch-0.14\t\501-termqu
ery.t line 13.


Should I reinstall .14 but from your location instead and if so what is the exact command ?  Any help is appreciated !!

Klaus


Marvin Humphrey <marvin at rectangular.com> wrote: 
On Jan 25, 2007, at 9:29 PM, Klaus Gruen wrote:

>  I added that to the top of the example code thats posted on the  
> web and in my email below and get this:

I wish I could say I see something, but it looks entirely normal.   
That error makes no sense to me.

In the relevant section of code, BooleanQuery is iterating over its  
subclauses, extracting their Query objects, and calling a method on  
them. (The method happens to be create_weight(), but that doesn't  
matter.)  In this case, there should be two subclauses, one for 'foo'  
and one for 'bar'.  Each should have a TermQuery in it.

Either one of those TermQuery objects has mysteriously transformed  
into an undef, or there's an extra mystery clause with an undef.   
I've never seen either of those things happen.  If the query string  
were something esoteric, I'd suspect a bug in QueryParser, but 'foo  
bar' shouldn't be misbehaving.

The strange thing is that if your install was borked, I'd expect  
stuff to fail long before we get to that point.  And we haven't even  
gotten into the C code -- Searcher, QueryParser, and all the Query  
classes are pure Perl in 0.14.

I'd be surprised if KinoSearch can pass its test suite if something  
like this is going on.  Grab a copy of 0.14 from 
www.rectangular.com/downloads/KinoSearch-0.14.tar.gz>, decompress it,  
cd into the t/ directory and start running test files:

    perl 501-termquery.t

... and so on.  Do they work?

Marvin Humphrey
Rectangular Research
http://www.rectangular.com/



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


 
---------------------------------
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.rectangular.com/pipermail/kinosearch/attachments/20070125/a8de083b/attachment.htm


More information about the kinosearch mailing list