public class IndexerService
extends java.lang.Object
Constructor and Description |
---|
IndexerService(java.lang.String rootLocation)
Create an indexer service on a directory.
|
IndexerService(java.lang.String rootLocation,
boolean configureLog4j)
Create an indexer service on a directory.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteIndex(java.lang.String indexName)
Delete an index from this indexerService.
|
ConcurrentMetaData |
getMetaData() |
java.lang.String |
getRootLocation() |
void |
refreshAvailableIndexes() |
public IndexerService(java.lang.String rootLocation, boolean configureLog4j) throws java.lang.RuntimeException
rootLocation
- The directory where all of your indexes are locatedconfigureLog4j
- Whether or not to configure a log4j appender.java.lang.RuntimeException
public IndexerService(java.lang.String rootLocation) throws java.lang.RuntimeException
rootLocation
- The directory where all of your indexes are locatedjava.lang.RuntimeException
public void refreshAvailableIndexes() throws java.lang.RuntimeException
java.lang.RuntimeException
public void deleteIndex(java.lang.String indexName) throws java.lang.RuntimeException
indexName
- org.apache.lucene.index.IndexNotFoundException
java.lang.RuntimeException
public java.lang.String getRootLocation()
public ConcurrentMetaData getMetaData()