@Override
 protected LuceneRecords createRecords() throws Exception {
   directory = new NoSyncDirectory(emptyVMDirectory("case-insensitive-lucene"));
   writer = indexWriter(directory, CaseInsensitive.queryAnalyzer());
   storage = new OptimisedStorage(writer);
   lucene = new Lucene(new StringMappings());
   return luceneRecords(logger);
 }
 private LuceneRecords luceneRecords(Logger logger1) throws IOException {
   return new LuceneRecords(
       storage, new LuceneMappings(), logger1, CaseInsensitive.luceneQueryPreprocessor());
 }