[Xapian-discuss] how can i search and add document at same time

ouwind ouwind at 163.com
Wed Sep 9 07:12:18 BST 2009


i know use flush to insert a document. but how can i search document when i call add_document and bettween. i mean not the document i am adding but the document already existed in database. for when i add_document, it will write database, so when i search database at this time, it will corrupt 

2009-9-9



ouwind







I think you want to call flush() on the db object after inserting the document.

David


On Wed, Sep 9, 2009 at 3:54 PM, ouwind <ouwind at 163.com> wrote:

when i add bacth of documents into flint database. i want the search is valid for user. so what can i do? now my solution is to get a copy. when i add document(from the code begin_transaction to commit_transaction), i need search in the copy. does there other better way


2009-9-9



ouwind
_______________________________________________
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