[Xapian-discuss] I'm having problems using queryparser's wild cards with Python

Olly Betts olly at survex.com
Fri Jun 9 12:34:50 BST 2006


On Fri, Jun 09, 2006 at 02:02:12PM +0300, Matti Heinonen wrote:
> Olly Betts wrote:
> >You need to tell the queryparser which database to use:
> >qp.set_database(DB)
> 
> Thanks, Olly. Queryparser is now working. I thought I was missing 
> something but I just could not see what.

You're not the first to miss this.  I've just added a note to the
documentation of FLAG_WILDCARD pointing out that set_database needs to
be called, which should help others avoid this trap.

Cheers,
    Olly



More information about the Xapian-discuss mailing list