Grokbase
Topics Posts Groups | in
x
[ help ]

Donato Di Leo (d...@edisoft.it)

Profile | Posts (1)

User Information

Display Name:Donato Di Leo
Partial Email Address:d...@edisoft.it
Posts:
1 total
1 in Xapian

4 Most Recent

1) Donato Di Leo Re: [Xapian-discuss] Enquire set_cutoff problem
| +1 vote
Olly Betts ha scritto: I found out the problem ... I wrote the cutoff value as decimal value like...
Xapian
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Olly Betts ha scritto:
> On Tue, Mar 11, 2008 at 07:32:04AM +0100, Donato Di Leo wrote:
>   
>> phpinfo() says:
>>
>> xapian
>> Xapian Support: Enabled
>> Xapian Compiled Version: 1.0.4
>> Xapian Linked Version: 1.0.5
>>     
>
> That should be fine then - smoketest.php has this regression test for
> bug#192 which is essentially indentical to one of the examples you
> report as not working:
>
> # Regression test for bug#192 - fixed in 1.0.3.
>     $enq->set_cutoff(100);
>
> What PHP version are you using?
>
> And can you send us a short self-contained script which demonstrates the
> problem?
>
> Cheers,
>     Olly
>
>

I found out the problem ...
I wrote the cutoff value as decimal value like 70.0 and in this way the
procedure doesn't work
If I write 70 (integer value) the procedure works fine
thank you
Donato

_______________________________________________
Xapian-discuss mailing list
[email protected: Xapian-di...@lists.xapian.org]
http://lists.xapian.org/mailman/listinfo/xapian-discuss
2) Donato Di Leo Re: [Xapian-discuss] Enquire set_cutoff problem
| +1 vote
Olly Betts ha scritto: phpinfo() says: xapian Xapian Support: Enabled Xapian Compiled Version:...
Xapian
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Olly Betts ha scritto:
> On Fri, Mar 07, 2008 at 02:30:09PM +0100, Donato Di Leo wrote:
>   
>> so I think the version is 1.0.4 but the problem is still present ....
>>     
>
> There's a regression test for this, so it seems unlikely it's still
> broken.
>
> If you add this to your PHP script, what does it report about the Xapian
> version:
>
>     phpinfo(); 
>
> Cheers,
>     Olly
>
>

phpinfo() says:

xapian
Xapian Support: Enabled
Xapian Compiled Version: 1.0.4
Xapian Linked Version: 1.0.5

I hope this information will be useful.

thank you

Donato


_______________________________________________
Xapian-discuss mailing list
[email protected: Xapian-di...@lists.xapian.org]
http://lists.xapian.org/mailman/listinfo/xapian-discuss
3) Donato Di Leo Re: [Xapian-discuss] Enquire set_cutoff problem
| +1 vote
Richard Boulton ha scritto: I downloaded the rpms from repository linked in the xapian site:...
Xapian
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
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


_______________________________________________
Xapian-discuss mailing list
[email protected: Xapian-di...@lists.xapian.org]
http://lists.xapian.org/mailman/listinfo/xapian-discuss
4) Donato Di Leo [Xapian-discuss] Enquire set_cutoff problem
| +1 vote
while testing Xapian we found out that the function set_cutoff doesn't work when called from php on...
Xapian
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
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);

where of course $enquire is well defined and in any case the error is
the same.

of course the other functions like   $enquire->set_sort_by_value()  work 
fine.

I'm stopped waiting for a solution for this very important problem.

Thx
Donato


_______________________________________________
Xapian-discuss mailing list
[email protected: Xapian-di...@lists.xapian.org]
http://lists.xapian.org/mailman/listinfo/xapian-discuss

spacer
Profile | Posts (1)
Home > People > Donato Di Leo