[Xapian-discuss] Enquire set_cutoff problem

Richard Boulton richard at lemurconsulting.com
Fri Mar 7 10:13:59 GMT 2008


Donato Di Leo wrote:
> while testing Xapian we found out that the function set_cutoff doesn't 
> work when called from php
> 
> on calling set_cutoff this error occurs:
> 
> Fatal error: No matching function for overloaded 'Enquire_set_cutoff' in 
> /srv/www/htdocs/xapian.php on line 702
> 
> I tried with one and two parameters but the error is always the same.
> 
> I saw the function definition in xapian.php and I think I'm using it in 
> a good way
> 
> I tried:
>   $enquire->set_cutoff($threshold);
> and
>   $enquire->set_cutoff($threshold,0.0);
> and
>   $enquire->set_cutoff(70,0.0);
> and
>   $enquire->set_cutoff(70);

This sounds like bug #192:
http://www.xapian.org/cgi-bin/bugzilla/show_bug.cgi?id=192

This is fixed in release 1.0.3 of Xapian.  Which version are you using?

-- 
Richard



More information about the Xapian-discuss mailing list