Changes lucene-index to run assertions within transactions