Transactional Lucene Many users don't appreciate the transactional semantics of Lucene's APIs and how this can be useful in search applications. For starters, Lucene implements ACID properties: Atomicity: when you make changes (adding, removing documents) in an IndexWriter session, and then commit, either all (if the commit succeeds) or none (if the commit fails) of your changes will be visible, never something in-between. Some methods have their own atomic behavior: if you call updateDocument , which is implemented as a delete followed by an add, you'll never see the delete without the add,
Read full article from Changing Bits: Transactional Lucene
No comments:
Post a Comment