title: Transaction in Lucene
body: <p>I am aware that lucene supports transactional ACID properties.</p>
  
  <p>As records are inserted each record is indexed in Lucene too.</p>
  
  <p>If transactions are done to database, then to indexes are done. But when it gets failed, MYSQL provides with rollback and the other records are not inserted in that transaction.</p>
  
  <p>When DB rollback even the indexes created at that time should also be rollback.</p>
  
  <p>Has Lucene provides such functionality?
  Is it possible to bind MYSQL transaction and Lucene indexing for the records?</p>