[Xapian-discuss] Perl bindings: QueryParser::OP_AND

John Wang johncwang at gmail.com
Fri Jul 14 20:32:15 BST 2006


On 7/14/06, Olly Betts <olly at survex.com> wrote:
>
> I've always just used:
>
>     use Search::Xapian qw(:ops);
>
> and then just used OP_AND unqualified.  Given the error you got, I'm not
> sure how you'd refer to OP_* without importing them like this (perhaps
> it's not possible).


Thanks. That did it. I wasn't importing anything. Maybe it's not possible
with OP_* but I can use the following (without quotes) fine without
importing :db :

Search::Xapian::DB_CREATE_OR_OPEN

Perhaps that's not intentional and not recommended? I've moved to importing
:db and using DB_CREATE_OR_OPEN unqualified for that.

-- 
John Wang
http://www.dev411.com/blog/


More information about the Xapian-discuss mailing list