lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karel Tejnora <>
Subject Re: updating document
Date Tue, 15 Aug 2006 12:59:38 GMT
Well, you can have! :-) Even I have not tested, just an idea.

You can get document id after add - numDocs() and insert if DB fails, 
you can delete document from RAMDir.

Or in my case of batches - im adding documents in DB with savepoint, 
than create clear index (create=true) and at the end if everything is 
use addIndexes() if not than rollback to savepoint and send sms.
> Unfortunately you may have transactional problems with this approach.  
> That
> is, if you write to lucene and in the same logical transaction you 
> write to
> external storage you may have atomicity problems if one of these actions
> fails.  But you can't have everything!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message