org.apache.lucene.facet.example.association
Class AssociationIndexer
java.lang.Object
org.apache.lucene.facet.example.association.AssociationIndexer
public class AssociationIndexer
- extends Object
Sample indexer creates an index, and adds to it sample documents with
categories, which can be simple or contain associations.
- 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 categories. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssociationIndexer
public AssociationIndexer()
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 categories.
- 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.