Olly Betts napisa?(a):> On Thu, Oct 19, 2006 at 04:24:53PM +0200, Tomasz Jackowiak wrote: >> I think, there is missing constructor function supporting remotewriting for XapianWritableDatabase class in the php bindings (0.9.7).> > Hmm, yes - the new factory functions aren't wrapped. I'll fix that > for the next release. > >> This code: >> $db = new XapianWritableDatabase(remote_open($db_host, $db_port), $action); >> returns: >> Fatal error: No matching function for overloaded'new_XapianWritableDatabase' (...)> > This wouldn't be the right syntax anyway, though. You'd use: > > $db = remote_open_writable($db_host, $db_port); > > Cheers, > OllyHi, It's me again ;) I still can't use remote writing. More than this, I can't even use get_lastdocid() method. $db = remote_open_writable(localhost, 4006); $db->get_lastdocid(); //Fatal error: unknown error in Xapian in (..) $db->replace_document($doc_id, $doc); //Fatal error: No matching function for overloaded 'XapianWritableDatabase_replace_document' in (...) Xapian 0.9.9 Is there something wrong I'm doing here? Tom -- Allegro.p
Olly Betts napisa?(a):> On Thu, Oct 19, 2006 at 04:24:53PM +0200, Tomasz Jackowiak wrote: >> I think, there is missing constructor function supporting remotewriting for XapianWritableDatabase class in the php bindings (0.9.7).> > Hmm, yes - the new factory functions aren't wrapped. I'll fix that > for the next release. > >> This code: >> $db = new XapianWritableDatabase(remote_open($db_host, $db_port), $action); >> returns: >> Fatal error: No matching function for overloaded'new_XapianWritableDatabase' (...)> > This wouldn't be the right syntax anyway, though. You'd use: > > $db = remote_open_writable($db_host, $db_port); > > Cheers, > OllyHi, It's me again ;) I still can't use remote writing. More than this, I can't even use get_lastdocid() method. $db = remote_open_writable(localhost, 4006); $db->get_lastdocid(); //Fatal error: unknown error in Xapian in (..) $db->replace_document($doc_id, $doc); //Fatal error: No matching function for overloaded 'XapianWritableDatabase_replace_document' in (...) Xapian 0.9.9 Is there something wrong I'm doing here? Tom -- Allegro.pl