Skip Menu |
 

This queue is for tickets about the Plucene CPAN distribution.

Report information
The Basics
Id: 18668
Status: open
Priority: 0/
Queue: Plucene

People
Owner: Nobody in particular
Requestors: skillcoyne [...] systemsbiology.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.24
Fixed in: (no value)



Subject: Can't call method "_cmp" on an undefined value at Plucene/Index/TermInfosReader.pm line 99.
Download (untitled) / with headers
text/plain 460b
my $hc = Plucene::Search::HitCollector->new( collect => sub { my ($self,$doc,$score) = @_; my $res = $searcher->doc($doc); my $max = $searcher->max_doc(); my $freq = $searcher->doc_freq(); push @hits, $res if $res; }); Call to "$searcher->doc_freq" causes error: Can't call method "_cmp" on an undefined value at Plucene/Index/ TermInfosReader.pm line 99. Perl version 5.8.5 Linux i686 i686 i386 GNU/Linux
Subject: Re: [rt.cpan.org #18668] Can't call method "_cmp" on an undefined value at Plucene/Index/TermInfosReader.pm line 99.
Date: Wed, 12 Apr 2006 06:31:01 +0100
To: Guest via RT <bug-plucene [...] rt.cpan.org>
From: Tony Bowden <tony [...] kasei.com>
Download (untitled) / with headers
text/plain 238b
On Tue, Apr 11, 2006 at 07:13:18PM -0400, Guest via RT wrote: Show quoted text
> Call to "$searcher->doc_freq" causes error: > Can't call method "_cmp" on an undefined value at Plucene/Index/ > TermInfosReader.pm line 99.
Under what circumstances? Tony
Subject: Re: [rt.cpan.org #18668] Can't call method "_cmp" on an undefined value at Plucene/Index/TermInfosReader.pm line 99.
Date: Wed, 12 Apr 2006 08:49:09 -0700
To: bug-plucene [...] rt.cpan.org
From: Sarah Killcoyne <skillcoyne [...] systemsbiology.net>
Download (untitled) / with headers
text/plain 1.1k
I'm running a search on an index I created using a query that I know is in one or more documents. It doesn't appear to matter what search term or parser default field I use, it always causes this error if I try to call the method doc_freq. This is the entirety of the code if it will help: my $searcher = Plucene::Search::IndexSearcher->new($path); my $parser = Plucene::QueryParser->new({ analyzer => Plucene::Analysis::WhitespaceAnalyzer->new(), default => $default, }); my $parsed_query = $parser->parse($query); my @Hits; my $hc = Plucene::Search::HitCollector->new( collect => sub { my ($self,$doc,$score) = @_; my $res = $searcher->doc($doc); my $freq = $searcher->doc_freq(); push @Hits, $res if $res; }); $searcher->search_hc($parsed_query, $hc); Tony Bowden via RT wrote: Show quoted text
><URL: http://rt.cpan.org/Ticket/Display.html?id=18668 > > >On Tue, Apr 11, 2006 at 07:13:18PM -0400, Guest via RT wrote: > >
>>Call to "$searcher->doc_freq" causes error: >>Can't call method "_cmp" on an undefined value at Plucene/Index/ >>TermInfosReader.pm line 99. >> >>
> >Under what circumstances? > >Tony > > >
Subject: Re: [rt.cpan.org #18668] Can't call method "_cmp" on an undefined value at Plucene/Index/TermInfosReader.pm line 99.
Date: Wed, 12 Apr 2006 16:52:03 +0100
To: "skillcoyne [...] systemsbiology.net via RT" <bug-plucene [...] rt.cpan.org>
From: Tony Bowden <tony [...] kasei.com>
Download (untitled) / with headers
text/plain 313b
On Wed, Apr 12, 2006 at 11:50:08AM -0400, skillcoyne@systemsbiology.net via RT wrote: Show quoted text
> This is the entirety of the code if it will help:
Not really. I'd need some way to actually replicate this. A self-contained failing test which creates an index, adds some documents, and then gets this error. Thanks, Tony


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.