Example usage for org.apache.lucene.facet.taxonomy.directory DirectoryTaxonomyWriter DirectoryTaxonomyWriter

List of usage examples for org.apache.lucene.facet.taxonomy.directory DirectoryTaxonomyWriter DirectoryTaxonomyWriter

Introduction

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

Prototype

public DirectoryTaxonomyWriter(Directory directory, OpenMode openMode, TaxonomyWriterCache cache)
        throws IOException 

Source Link

Document

Construct a Taxonomy writer.

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);/*  w  w w  .j a va 2s  . co m*/
    taxoWriter = new DirectoryTaxonomyWriter(taxoDirectory, IndexWriterConfig.OpenMode.CREATE_OR_APPEND,
            new LruTaxonomyWriterCache(100));
}