[Xapian-discuss] WritableDatabase::replace_document and PERL
Colin B. Thomas
cbt at M-CAM.COM
Fri Aug 19 17:00:45 BST 2005
Whenever I try to update a document in our database using the following
command (in PERL):
$db->replace_document($uniquestring, $document);
Where:
$db is a Search::Xapian::WritableDatabase object
$document is a Search::Xapian::Document object
$uniquestring is a string unique to the document being replaced
I get the following error:
Argument "SEC_ID:0000000003-96-000039" isn't numeric in subroutine entry
(SEC_ID:0000000003-96-000039 was the unique string in this case).
How do I specify that I want the:
WritableDatabase::replace_document(const std::string &unique_term, const
Xapian::Document &document) implementation
As opposed to:
WritableDatabase::replace_document(Xapian::docid did, const
Xapian::Document &document) implementation
Thanks,
Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.tartarus.org/pipermail/xapian-discuss/attachments/20050819/bd5091ac/attachment.htm
More information about the Xapian-discuss
mailing list