Re: ThreadLocal Transaction

2016-08-18 Thread Cristian Lorenzetto
it seams more complex the problem. I m trying to reasoning aload :) if i create a transaction using addDocuments... i suppose all the docs to persist inside transaction are before in memory. Not always is so. In addition for a complete isolation inside transaction , there is a aspect not working.

Re: ThreadLocal Transaction

2016-08-18 Thread Adrien Grand
What you are suggesting sounds like something that can already be done with IndexWriter.addDocuments? (note the final "s") This API ensures that all provided documents will become visible at the same time (and with adjacent doc ids moreover). Le jeu. 18 août 2016 à 10:52, Cristian Lorenzetto < cri

ThreadLocal Transaction

2016-08-18 Thread Cristian Lorenzetto
I d like to create a class for creating a classical transaction. Overviewing lucene api , i can see commit/rollback/prepareCommit are just for the entire index not for partial modifications. So i thought i could to use api writer.addIndexes as support: when i open a transaction i could create a te