List of usage examples for org.apache.lucene.facet.taxonomy.writercache LruTaxonomyWriterCache LruTaxonomyWriterCache
public LruTaxonomyWriterCache(int cacheSize)
From source file:org.meresco.lucene.numerate.TermNumerator.java
License:Open Source License
public TermNumerator(File path) throws IOException { MMapDirectory taxoDirectory = new MMapDirectory(path); taxoDirectory.setUseUnmap(false);//from w ww . j a v a 2s . com taxoWriter = new DirectoryTaxonomyWriter(taxoDirectory, IndexWriterConfig.OpenMode.CREATE_OR_APPEND, new LruTaxonomyWriterCache(100)); }