[Xapian-discuss] Argument isn't numeric in subroutine entry ? Any ideas please...

Olly Betts olly at survex.com
Thu Oct 11 18:45:59 BST 2007


I don't understand the error you get, but this line is wrong:

> my $final_query = Search::Xapian::Query(OP_AND, ($xapian_query, $xapian_query2));

That should be:

  my $final_query = Search::Xapian::Query->new(OP_AND, ($xapian_query, $xapian_query2));

Or just:

  my $final_query = Search::Xapian::Query->new(OP_AND, $xapian_query, $xapian_query2);

If that's not it, can you post a complete example script?  It's much
harder to work with just a snippet (for a start, I've no idea what
"entry" does, or which line is line 42...)

Cheers,
    Olly



More information about the Xapian-discuss mailing list