LPS-45573 Clean up IndexAccessImpl Lucene Directory usage
LPS-45573 To prevent frequent index commits caused segements expanding within one test, we have to do merge. This will recycle empty segments(created by add/remove documents) to free up more memory.
LPS-45573 Readability over something that is rarely called
LPS-45573 add line breaks since I assume order matters