Example usage for org.apache.lucene.facet.taxonomy.writercache LruTaxonomyWriterCache LruTaxonomyWriterCache

List of usage examples for org.apache.lucene.facet.taxonomy.writercache LruTaxonomyWriterCache LruTaxonomyWriterCache

Introduction

In this page you can find the example usage for org.apache.lucene.facet.taxonomy.writercache LruTaxonomyWriterCache LruTaxonomyWriterCache.

Prototype

public LruTaxonomyWriterCache(int cacheSize) 

Source Link

Document

Creates this with LRUType#LRU_STRING method.

Usage

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));
}