[Xapian-discuss] Querying with PHP4 bindings
Olly Betts
olly at survex.com
Thu Nov 23 18:48:41 GMT 2006
On Thu, Nov 23, 2006 at 08:53:57PM +0500, Sharjeel Ahmed Qureshi wrote:
> There were initialy small problems using it as the example shipped
> with the source didn't work.
Ah yes, I failed to update the PHP examples for the recent changes.
I'll fix them shortly.
> After some hit & trial I was able to create a db connection. However I
> am still facing problem instantiating a query object. when I write the
> code "$query = new XapianQuery()", PHP politely accepts it. However if I
> try to pass any parameter to the constructor, the following error occurs:
>
> "PHP Fatal Error: No matching function for overloaded 'new_XapianQuery'
> in <filename>.php on line xxx".
What parameters are you trying? For example, this works for me:
$query = new XapianQuery("foo");
Cheers,
Olly
More information about the Xapian-discuss
mailing list