[Xapian-discuss] Perl bindings: QueryParser::OP_AND
Olly Betts
olly at survex.com
Fri Jul 14 19:18:52 BST 2006
On Fri, Jul 14, 2006 at 11:00:39AM -0700, John Wang wrote:
> When I set the query parser default op to OP_AND like the following:
>
> $qp->set_default_op('Search::Xapian::QueryParser::OP_AND')
>
> I get an error in the Apache log:
>
> Argument "Search::Xapian::QueryParser::OP_AND" isn't numeric in subroutine
> entry
>
> but it does what it's supposed to. Is this error something to worry about?
I don't think you want the single quotes - it only works because Perl
interprets a non-numeric value as 0 and OP_AND happens to be 0
internally.
Cheers,
Olly
More information about the Xapian-discuss
mailing list