[Xapian-devel] Fwd: Strange error with PHP bindings [some more details]
Olly Betts
olly at survex.com
Wed Aug 20 01:38:04 BST 2008
On Tue, Aug 19, 2008 at 09:17:09AM +0200, Alessandro Pasotti wrote:
> Finally I noticed something suspect:
>
> [2008-08-19 09:11:25] [DEBUG] DAO_Articles::add_xindex() - document added id
> : 255, title : Gli anelli con sigil...
>
> this is a debug line from my application, add_xindex function simply adds
> the document to xapian database, the error always happens when I try to add
> an article with id = 255, this can not be a casualty (I also tried to change
> the order of documents, it always stop to 255).
You're still going to need to show us how to reproduce this. This works
for me:
$db = new XapianWritableDatabase("tmp.db", Xapian::DB_CREATE_OR_OVERWRITE);
$db->replace_document(255, new XapianDocument());
Cheers,
Olly
More information about the Xapian-devel
mailing list