MODE-1854 - Fixed indexing during user transactions: previously, the indexing operations were submitted on a transaction in state COMMITTED, causing Hibernate Search to no see an active transaction.
MODE-1854 - Changes count should only be dispatched & statistics updated if the transaction is successful.