Package org.dspace.discovery
Class IndexClient
- java.lang.Object
-
- org.dspace.scripts.DSpaceRunnable
-
- org.dspace.discovery.IndexClient
-
- All Implemented Interfaces:
Runnable
public class IndexClient extends DSpaceRunnable
Class used to reindex dspace communities/collections/items into discovery
-
-
Field Summary
-
Fields inherited from class org.dspace.scripts.DSpaceRunnable
commandLine, handler, options
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckRebuildSpellCheck(org.apache.commons.cli.CommandLine line, IndexingService indexer)Check the command line options and rebuild the spell check if active.voidinternalRun()This 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 variables-
Methods inherited from class org.dspace.scripts.DSpaceRunnable
getDescription, getName, getOptions, initialize, isAllowedToExecute, printHelp, run, setDescription, setName
-
-
-
-
Method Detail
-
internalRun
public void internalRun() throws ExceptionDescription 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- Throws:
Exception- If something goes wrong
-
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- Throws:
org.apache.commons.cli.ParseException- If something goes wrong
-
checkRebuildSpellCheck
protected void checkRebuildSpellCheck(org.apache.commons.cli.CommandLine line, IndexingService indexer) throws SearchServiceException, IOExceptionCheck 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- passed through
-
-