[Xapian-discuss] delete and update

Alan Brenner alan.brenner at ithaka.org
Thu Jun 18 01:56:42 BST 2009


In python:

import xapian
oIndex = xapian.WritableDatabase(sStoreDir, xapian.DB_OPEN)
oIndex.delete_document(nPageID)

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.
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss




More information about the Xapian-discuss mailing list