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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 460
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
X-Scanned-BY: AMaViS-ng at bestpractical
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00
In-Reply-To: <rt-3.5.HEAD-14093-1144797198-1357.18668-4-0 [...] rt.cpan.org>
Content-Disposition: inline
Received-SPF: pass (x1.develooper.com: local policy)
References: <RT-Ticket-18668 [...] rt.cpan.org> <rt-3.5.HEAD-14093-1144797198-1357.18668-4-0 [...] rt.cpan.org>
Reply-To: tony [...] kasei.com
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: us-ascii
Received: from localhost (localhost.localdomain [127.0.0.1]) by diesel.bestpractical.com (Postfix) with ESMTP id C68FB4D8287 for <cpan-bug+plucene [...] diesel.bestpractical.com>; Wed, 12 Apr 2006 01:31:54 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 5A22D4D8286 for <bug-plucene [...] rt.cpan.org>; Wed, 12 Apr 2006 01:31:54 -0400 (EDT)
Received: (qmail 24857 invoked by alias); 12 Apr 2006 05:31:46 -0000
Received: from soto.kasei.com (HELO soto.kasei.com) (80.76.206.154) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 11 Apr 2006 22:31:09 -0700
Received: by soto.kasei.com (Postfix, from userid 1011) id 3B8BB1C42E; Wed, 12 Apr 2006 06:31:01 +0100 (BST)
Delivered-To: cpan-bug+plucene [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #18668] Can't call method "_cmp" on an undefined value at Plucene/Index/TermInfosReader.pm line 99.
User-Agent: Mutt/1.5.5.1+cvs20040105i
Return-Path: <tony [...] kasei.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+plucene [...] diesel.bestpractical.com
Date: Wed, 12 Apr 2006 06:31:01 +0100
Message-Id: <20060412053101.GC4291 [...] soto.kasei.com>
To: Guest via RT <bug-plucene [...] rt.cpan.org>
From: Tony Bowden <tony [...] kasei.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.5.HEAD-14105-1144819918-595.18668-0-0 [...] rt.cpan.org>
Content-Length: 238
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
X-Scanned-BY: AMaViS-ng at bestpractical
X-Originalarrivaltime: 12 Apr 2006 15:49:15.0860 (UTC) FILETIME=[A6F88940:01C65E48]
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.5 required=8.0 tests=BAYES_00,FORGED_RCVD_HELO,SPF_PASS
In-Reply-To: <rt-3.5.HEAD-14105-1144819918-595.18668-6-0 [...] rt.cpan.org>
X-Accept-Language: en-us, en
Received-SPF: pass (x1.develooper.com: domain of skillcoyne [...] systemsbiology.org designates 209.124.189.35 as permitted sender)
References: <RT-Ticket-18668 [...] rt.cpan.org> <rt-3.5.HEAD-14093-1144797198-1357.18668-4-0 [...] rt.cpan.org> <20060412053101.GC4291 [...] soto.kasei.com> <rt-3.5.HEAD-14105-1144819918-595.18668-6-0 [...] rt.cpan.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
X-RT-Original-Encoding: utf-8
Received: from localhost (localhost.localdomain [127.0.0.1]) by diesel.bestpractical.com (Postfix) with ESMTP id 10C054D8210 for <cpan-bug+plucene [...] diesel.bestpractical.com>; Wed, 12 Apr 2006 11:49:59 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id F1FCF4D8216 for <bug-plucene [...] rt.cpan.org>; Wed, 12 Apr 2006 11:49:57 -0400 (EDT)
Received: (qmail 10222 invoked by alias); 12 Apr 2006 15:49:49 -0000
Received: from exchange.systemsbiology.org (HELO exchange.systemsbiology.net) (209.124.189.35) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 12 Apr 2006 08:49:21 -0700
Received: from [10.0.5.93] ([10.0.5.93] unverified) by exchange.systemsbiology.net over TLS secured channel with Microsoft SMTPSVC(5.0.2195.6713); Wed, 12 Apr 2006 08:49:15 -0700
Delivered-To: cpan-bug+plucene [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #18668] Can't call method "_cmp" on an undefined value at Plucene/Index/TermInfosReader.pm line 99.
User-Agent: Mozilla Thunderbird 0.9 (X11/20041103)
Return-Path: <skillcoyne [...] systemsbiology.org>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+plucene [...] diesel.bestpractical.com
Date: Wed, 12 Apr 2006 08:49:09 -0700
Message-Id: <443D2175.6040507 [...] systemsbiology.net>
To: bug-plucene [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Sarah Killcoyne <skillcoyne [...] systemsbiology.net>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.5.HEAD-14105-1144857007-648.18668-0-0 [...] rt.cpan.org>
Content-Length: 1208
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 > > >
X-Scanned-BY: AMaViS-ng at bestpractical
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00
In-Reply-To: <rt-3.5.HEAD-14105-1144857007-648.18668-5-0 [...] rt.cpan.org>
Content-Disposition: inline
Received-SPF: pass (x1.develooper.com: local policy)
References: <RT-Ticket-18668 [...] rt.cpan.org> <rt-3.5.HEAD-14093-1144797198-1357.18668-4-0 [...] rt.cpan.org> <20060412053101.GC4291 [...] soto.kasei.com> <rt-3.5.HEAD-14105-1144819918-595.18668-6-0 [...] rt.cpan.org> <443D2175.6040507 [...] systemsbiology.net> <rt-3.5.HEAD-14105-1144857007-648.18668-5-0 [...] rt.cpan.org>
Reply-To: tony [...] kasei.com
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: us-ascii
Received: from localhost (localhost.localdomain [127.0.0.1]) by diesel.bestpractical.com (Postfix) with ESMTP id C27C84D8210 for <cpan-bug+plucene [...] diesel.bestpractical.com>; Wed, 12 Apr 2006 11:53:09 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 58EF44D820E for <bug-plucene [...] rt.cpan.org>; Wed, 12 Apr 2006 11:53:09 -0400 (EDT)
Received: (qmail 11267 invoked by alias); 12 Apr 2006 15:53:01 -0000
Received: from soto.kasei.com (HELO soto.kasei.com) (80.76.206.154) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 12 Apr 2006 08:52:16 -0700
Received: by soto.kasei.com (Postfix, from userid 1011) id 1F9C91C399; Wed, 12 Apr 2006 16:52:03 +0100 (BST)
Delivered-To: cpan-bug+plucene [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #18668] Can't call method "_cmp" on an undefined value at Plucene/Index/TermInfosReader.pm line 99.
User-Agent: Mutt/1.5.5.1+cvs20040105i
Return-Path: <tony [...] kasei.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+plucene [...] diesel.bestpractical.com
Date: Wed, 12 Apr 2006 16:52:03 +0100
Message-Id: <20060412155202.GA8908 [...] soto.kasei.com>
To: "skillcoyne [...] systemsbiology.net via RT" <bug-plucene [...] rt.cpan.org>
From: Tony Bowden <tony [...] kasei.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.5.HEAD-14090-1144857194-1735.18668-0-0 [...] rt.cpan.org>
Content-Length: 313
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.