@CliMode(id="default", usage="Perform search-indexing according to the configuration.") public abstract class AbstractSearchIndexerMain extends AbstractVersionedMain
search-indexer according to a given
configuration. It allows to do
complex indexing of files from arbitrary sources.| Modifier and Type | Field and Description |
|---|---|
private String |
configurationUrl
The optional filename of the configuration XML-file.
|
private Boolean |
optimize
The option to optimize the index at the end of indexing.
|
private boolean |
overwrite
The option to overwrite the search-index and re-index from scratch.
|
private List<String> |
sources
The option defining an optional
List of source-IDs that should be updated in index rather than
all sources. |
EXIT_CODE_CONSTRAINT_VIOLATION, EXIT_CODE_ILLEGAL_SYNTAX, EXIT_CODE_OK, EXIT_CODE_UNEXPECTED| Constructor and Description |
|---|
AbstractSearchIndexerMain()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract IocContainer |
getIocContainer()
An
IocContainer is required. |
protected int |
runDefaultMode()
This method is called from
AbstractVersionedMain.run(CliModeObject) if the program is executed in default mode. |
getVersion, rungetOutputSettings, getParserBuilder, getStandardError, getStandardOutput, getStreamUtil, handleError, printHelp, run, runAndExit, setStandardError, setStandardOutput, validategetLogger@CliOption(name="--config", aliases="-c", required=false, operand="FILE", usage="The XML-configuration file. The default is {default}.") private String configurationUrl
@CliOption(name="--overwrite", required=false, usage="Overwrite the search-index and reindex from scratch. If combined with --source, only the entries of the specified source(s) are overwritten.") private boolean overwrite
@CliOption(name="--optimized", required=false, usage="Optimize the search-index after indexing. This will cause some performance overhead after indexing but will typically speed up your searches. Default is {default}.") private Boolean optimize
protected abstract IocContainer getIocContainer()
IocContainer is required. Override this method to provide it.
This method gets the IocContainer used to manage components with their implementation. It should be created
and initialized on the first call of this method. null to avoid dependencies on a IocContainer
implementation. Override this method to use proper component management.getIocContainer in class AbstractMainIocContainer.SpringContainerprotected int runDefaultMode()
AbstractVersionedMain.run(CliModeObject) if the program is executed in default mode.runDefaultMode in class AbstractVersionedMainAbstractMain.EXIT_CODE_OK on success.Copyright © 2001–2016 mmm-Team. All rights reserved.