[Xapian-discuss] How to check docid

Andrew G. andrewg47 at ymail.com
Mon May 30 22:06:41 BST 2011


I have a bit of code (Python) to delete a number of documents:

    for f in Flist: xapian_store.delete_document(f.pri_key)

in which I am using a unique primary key from an SQL database as the docid for the Xapian database.

The problem I have is that some of the documents may not have been created - so I get an error. Now I could just ignore the error (try-recover), but what would be the recommended way to handle this situation?

Andrew.
 



More information about the Xapian-discuss mailing list