API change in Lucene module to prevent thread unsafe use