[2.1] Tweak for number of files opened by Lucene

Added explicit merge policy to lucene index writers. This policy tries to be very conservative about number of opened files.
Could be replaced by a while loop checking the boolean return value of `searchManager.maybeRefresh()` but perhaps that doesn't make any difference.