[Xapian-discuss] delete and update

Alan Brenner alan.brenner at ithaka.org
Thu Jun 18 02:07:28 BST 2009


Example update in python:

import xapian
oIndex = xapian.WritableDatabase(sStoreDir, xapian.DB_OPEN)
oDoc = oIndex.get_document(nPageID)
oDoc.add_value(1, str(oDate))
oIndex.replace_document(nPageID, oDoc)

where sStoreDir is the xapian index directory and nPageID is number of  
the document you want to delete.

On Jun 17, 2009, at 8:30 PM, l g wrote:

> Hi All,
> I need to update or delete some documents from a Xapian database. and
> I haven't been able to find anything in the API , Is there a way to  
> do it
> ? What would be the easiest way to do it ?
> Thanks.



More information about the Xapian-discuss mailing list