public abstract class AbstractSearchIndexerBuilder extends AbstractLoggableComponent implements SearchIndexerBuilder
SearchIndexerBuilder
interface.Constructor and Description |
---|
AbstractSearchIndexerBuilder()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
SearchIndexer |
createIndexer(SearchIndexerConfigurationHolder configurationHolder)
This method opens a new
SearchIndexer . |
SearchIndexer |
createIndexer(String dataSource,
SearchIndexerOptions options)
This method opens a new
SearchIndexer . |
createLogger, doInitialize, getLogger
doInitialized, getInitializationState, initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createIndexer
public AbstractSearchIndexerBuilder()
public final SearchIndexer createIndexer(String dataSource, SearchIndexerOptions options) throws SearchException
SearchIndexer
. indexer
should be open at a time (for the same dataSource
).
You have to close
the indexer before calling this method again. update
to false
to avoid loosing valuable data.createIndexer
in interface SearchIndexerBuilder
dataSource
- is a string identifying the data source where the index is persisted. This is typically
the absolute path to the index in the local filesystem.options
- are the SearchIndexerOptions
.SearchException
- if the operation failed.public SearchIndexer createIndexer(SearchIndexerConfigurationHolder configurationHolder) throws SearchException
SearchIndexer
. indexer
should be open at a time (for the same
location
). You have to
close
the indexer before calling this method again. createIndexer
in interface SearchIndexerBuilder
configurationHolder
- is the SearchIndexerConfigurationHolder
.SearchException
- if the operation failed.Copyright © 2001–2016 mmm-Team. All rights reserved.