[Xapian-discuss] error in Xapian::Search

Ron Kass ron at pidgintech.com
Tue Mar 4 20:13:13 GMT 2008


Hi Olly.

Hope all is splendid in NZ :)


here is the bit of code where the error is originating from:

39:    sub get_mset {
40:      my $self = shift;
41:      my $nargs = scalar(@_);
42:      if( $nargs == 3 ) {
43:        my $type = ref( $_[2] );
44:        if ( $type eq 'CODE' ) {
45:          # get_mset(first, max, matchdecider) [perl extra]
46:          return $self->get_mset2(@_);
47:        }
48:        if ( $type eq 'Search::Xapian::RSet' ) {
49:          # get_mset(first, max, rset)
50:          splice @_, 2, 0, (0); # insert checkatleast
51:        }
52:      } elsif( $nargs == 4 && ref( $_[3] ) eq 'CODE' ) {
53:        # get_mset(first, max, rset, matchdecider)
54:        splice @_, 2, 0, (0); # insert checkatleast
55:      }
56:      return $self->get_mset1( @_ );
57:    }           


Note that line 56 is simply returning $self->get_mset1( @_ )

Both $self has value (Enquire object: 
Xapian::Enquire=SCALAR(0x14d04790)) and @_ which is 3 in our case.


Despite the error, a proper result set is returned. So its not very clear.


In this case, unlike the other issue we have, the database is local.


Hope this gives more information..


Cheers,

    Ron

________________________________________________

Olly Betts wrote:

> On Tue, Mar 04, 2008 at 03:12:25PM +0200, Ron Kass wrote:
>   
>> Getting this error suring search on a database:
>>
>>  Use of uninitialized value in subroutine entry at 
>> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/Search/Xapian/Enquire.pm 
>> line 56.
>>     
>
> You don't give us much to go on, but I'd guess you're passing an
> undefined value to some method of Enquire.
>
> Cheers,
>     Olly
>   


More information about the Xapian-discuss mailing list