org.apache.lucene.facet.example.simple
Class SimpleIndexer
java.lang.Object
org.apache.lucene.facet.example.simple.SimpleIndexer
public class SimpleIndexer
- extends Object
Sample indexer creates an index, and adds to it sample documents and facets.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
Method Summary |
static void |
index(org.apache.lucene.store.Directory indexDir,
org.apache.lucene.store.Directory taxoDir)
Create an index, and adds to it sample documents and facets. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleIndexer
public SimpleIndexer()
index
public static void index(org.apache.lucene.store.Directory indexDir,
org.apache.lucene.store.Directory taxoDir)
throws Exception
- Create an index, and adds to it sample documents and facets.
- Parameters:
indexDir
- Directory in which the index should be created.taxoDir
- Directory in which the taxonomy index should be created.
- Throws:
Exception
- on error (no detailed exception handling here for sample simplicity
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.