[Xapian-discuss] QueryParser API Docs

Mike Boone mike at boonedocks.net
Wed Mar 30 18:01:43 BST 2005


I've been getting lots of "PHP Warning: Wrong parameter count for..." type
errors in upgrading to 0.8.5.1. The first of which was with
set_stemming_options, but I'm also seeing them on new_query() and
enquire_get_mset(). I'm going through xapian_wrap.cc to see what's changed.

It looks like in the case of set_stemming_options, I have to add the 'false'
to set the stem_all parameter (what does that do?).

In new_query(), termcount and termpos used to default to 1 and 0
respectively, but now I have to set them.

In enquire_get_mset, I now have to set the checkatleast parameter. Can I
leave that at zero?

That's all I've run into so far, but there may be other errors once I fix
those. I guess these extra parameters give me more flexibility for
controlling Xapian via PHP, but it would be nice if those could be defaulted
so as to not break existing code. Does SWIG allow for default parameter
values?

Thanks,
Mike.

-----Original Message-----
From: Olly Betts [mailto:olly at survex.com]
Sent: Wednesday, March 30, 2005 11:45 AM
To: Mike Boone
Cc: xapian-discuss at lists.xapian.org
Subject: Re: [Xapian-discuss] QueryParser API Docs


On Wed, Mar 30, 2005 at 10:17:40AM -0500, Mike Boone wrote:
> Sorry, I meant to say 0.8.5.1!

OK.

If you're still having trouble, how are you calling set_stemming_options
and in what way has it stopped working (error message or what?)

Cheers,
    Olly




More information about the Xapian-discuss mailing list