Skip to main content.
home | support | download

Back to List Archive

RE: Index file error

From: Nick Le Mouton <noodles(at)not-real.planetslackers.com>
Date: Fri Feb 25 2005 - 02:37:37 GMT
Never mind, it's fixed now. I was using debian's swish-e package, and it
looks like someone installed the latest version of swish-e from source code,
so my php extension was out of date.

Nothing to see here, move along =)

-----Original Message-----
From: swish-e@sunsite3.berkeley.edu [mailto:swish-e@sunsite3.berkeley.edu]
On Behalf Of Nick Le Mouton
Sent: Friday, 25 February 2005 3:18 p.m.
To: Multiple recipients of list
Subject: [SWISH-E] Index file error

Hi everyone,

I've having some problems getting swish-e going on a new site that I'm
doing. I'm using the php extension for swish-e like so:

if(!extension_loaded('swishe')) {
  dl('./swishe.so');
}

$index_file = '/var/webroot/drugs/ddc.index';

$swish = swishe($index_file);

    if(($err = $swish->error()))
    {
        echo "ERROR: $err (should be 0 on success)\n";
        $str_error = $swish->error_string();
        echo "ERROR TEXT: $str_error\n";
        $crit_error = $swish->critical_error();
        echo "ERROR CRITICAL: $crit_error\n";
    }

Etc...

But I get this error:

ERROR: -250 (should be 0 on success)
ERROR TEXT: Index file error
ERROR CRITICAL: 1

I've checked the index file, it's definitely there, and I can search it
using the command line e.g. swish-e -f ddc.index -w Orlistat
But php cannot access it for some reason (the index is even chmod'ed 777)

Can anyone help? This method has worked before on other sites that I've done
and this is the first time I've come across an error like this.

Thanks
Nick
Received on Thu Feb 24 18:37:38 2005