throw new RuntimeException("Bad indexing strategy: " + indexingStrategy);
IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_44 , indexingStrategy.equals("exact") ? new KeywordAnalyzer() : new StandardAnalyzer(Version.LUCENE_44));
config.setOpenMode(OpenMode.CREATE);
config.setRAMBufferSizeMB(256.0);
indexer = new IndexWriter(new SimpleFSDirectory(new File(outputDir)),config);
this.nameFile = namefile;
}