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
allright
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]