Package org.dspace.discovery
Class IndexClient
java.lang.Object
org.dspace.scripts.DSpaceRunnable<IndexDiscoveryScriptConfiguration>
org.dspace.discovery.IndexClient
- All Implemented Interfaces:
Runnable
Class used to reindex DSpace communities/collections/items into discovery.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.dspace.scripts.DSpaceRunnable
DSpaceRunnable.StepResult -
Field Summary
Fields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler, helpCommandLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckRebuildSpellCheck(org.apache.commons.cli.CommandLine line, IndexingService indexer) Check the command line options and rebuild the spell check if active.This method will return the Configuration that the implementing DSpaceRunnable usesvoidThis method has to be included in every script and this will be the main execution block for the script that'll contain all the logic neededvoidsetup()This method has to be included in every script and handles the setup of the script by parsing the CommandLine and setting the variablesMethods inherited from class org.dspace.scripts.DSpaceRunnable
getEpersonIdentifier, getFileNamesFromInputStreamOptions, initialize, printHelp, run, setEpersonIdentifier
-
Constructor Details
-
IndexClient
public IndexClient()
-
-
Method Details
-
internalRun
Description copied from class:DSpaceRunnableThis method has to be included in every script and this will be the main execution block for the script that'll contain all the logic needed- Specified by:
internalRunin classDSpaceRunnable<IndexDiscoveryScriptConfiguration>- Throws:
Exception- If something goes wrong
-
getScriptConfiguration
Description copied from class:DSpaceRunnableThis method will return the Configuration that the implementing DSpaceRunnable uses- Specified by:
getScriptConfigurationin classDSpaceRunnable<IndexDiscoveryScriptConfiguration>- Returns:
- The
ScriptConfigurationthat this implementing DspaceRunnable uses
-
setup
public void setup() throws org.apache.commons.cli.ParseExceptionDescription copied from class:DSpaceRunnableThis method has to be included in every script and handles the setup of the script by parsing the CommandLine and setting the variables- Specified by:
setupin classDSpaceRunnable<IndexDiscoveryScriptConfiguration>- Throws:
org.apache.commons.cli.ParseException- If something goes wrong
-
checkRebuildSpellCheck
protected void checkRebuildSpellCheck(org.apache.commons.cli.CommandLine line, IndexingService indexer) throws SearchServiceException, IOException Check the command line options and rebuild the spell check if active.- Parameters:
line- the command line optionsindexer- the solr indexer- Throws:
SearchServiceException- in case of a solr exceptionIOException- If I/O error occurs.
-