Subject: | Can't call method "_cmp" on an undefined value at Plucene/Index/TermInfosReader.pm line 99. |
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