Hello Marcel, I don't want to commit this changes. I am using Springs AbstractTransactionalSpringContextTests to rollback my changes after running. So I need to use the index inside the same transaction. Isn't this possible?
Thanks Juergen Marcel Reutegger wrote: > > Hi, > > chokdee wrote: >> I am trying to synchronize my code with the index for a unit test. >> It seems to be that I can not use the QueryManager immediately after >> adding >> a node to search this node. >> Is this right? > > the query manager will always execute the query against all persisted > changes. > can you please double check that you called save() and committed the > transaction > (if there is one) before you execute the query? > >> The MultiIndex is running as a background thread and I can tell him how >> often it should run. >> But can I synchronize it? > > what exactly do you mean with 'synchronize it'? > > regards > marcel > > -- View this message in context: http://www.nabble.com/Flush-Index-tp20579766p20662742.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
