[Xapian-discuss] Enquire set_cutoff problem
Donato Di Leo
ddileo at edisoft.it
Fri Mar 7 13:30:09 GMT 2008
Richard Boulton ha scritto:
> 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?
>
I downloaded the rpms from repository linked in the xapian site:
http://download.opensuse.org/repositories/server:/search/openSUSE_10.2/
I installed these rpm:
php-xapian-1.0.4-3.1.i586.rpm <http://download.opensuse.org/repositories/server:/search/openSUSE_10.2/i586/php-xapian-1.0.4-3.1.i586.rpm>
xapian-bindings-1.0.4-3.1.i586.rpm <http://download.opensuse.org/repositories/server:/search/openSUSE_10.2/i586/xapian-bindings-1.0.4-3.1.i586.rpm>
xapian-core-libs-1.0.4-2.1.i586.rpm <http://download.opensuse.org/repositories/server:/search/openSUSE_10.2/i586/xapian-core-libs-1.0.4-2.1.i586.rpm>
so I think the version is 1.0.4 but the problem is still present ....
thanks
Donato
More information about the Xapian-discuss
mailing list