org.apache.lucene.facet.example.multiCL
Class MultiCLIndexer
java.lang.Object
org.apache.lucene.facet.example.multiCL.MultiCLIndexer
public class MultiCLIndexer
- extends Object
Sample indexer creates an index, and adds to it sample documents and facets
with multiple CategoryLists specified for different facets, so there are different
category lists for different 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. |
static void |
index(org.apache.lucene.store.Directory indexDir,
org.apache.lucene.store.Directory taxoDir,
FacetIndexingParams iParams,
String[] docTitles,
String[] docTexts,
CategoryPath[][] cPaths)
More advanced method for specifying custom indexing params, doc texts,
doc titles and category paths. |
static void |
index(org.apache.lucene.index.IndexWriter iw,
DirectoryTaxonomyWriter taxo,
FacetIndexingParams iParams,
String[] docTitles,
String[] docTexts,
CategoryPath[][] cPaths)
More advanced method for specifying custom indexing params, doc texts,
doc titles and category paths. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUM_DOCS
public static int NUM_DOCS
NUM_FACETS_PER_DOC
public static int NUM_FACETS_PER_DOC
TITLE_LENGTH
public static int TITLE_LENGTH
TEXT_LENGTH
public static int TEXT_LENGTH
MULTI_IPARAMS
public static PerDimensionIndexingParams MULTI_IPARAMS
MultiCLIndexer
public MultiCLIndexer()
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
index
public static void index(org.apache.lucene.store.Directory indexDir,
org.apache.lucene.store.Directory taxoDir,
FacetIndexingParams iParams,
String[] docTitles,
String[] docTexts,
CategoryPath[][] cPaths)
throws Exception
- More advanced method for specifying custom indexing params, doc texts,
doc titles and category paths.
- Throws:
Exception
index
public static void index(org.apache.lucene.index.IndexWriter iw,
DirectoryTaxonomyWriter taxo,
FacetIndexingParams iParams,
String[] docTitles,
String[] docTexts,
CategoryPath[][] cPaths)
throws Exception
- More advanced method for specifying custom indexing params, doc texts,
doc titles and category paths.
Create an index, and adds to it sample documents and facets.
- Throws:
Exception
- on error (no detailed exception handling here for sample
simplicity
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.