Class IndexClient

  • All Implemented Interfaces:
    Runnable

    public class IndexClient
    extends DSpaceRunnable
    Class used to reindex dspace communities/collections/items into discovery
    • Method Detail

      • internalRun

        public void internalRun()
                         throws Exception
        Description copied from class: DSpaceRunnable
        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 needed
        Specified by:
        internalRun in class DSpaceRunnable
        Throws:
        Exception - If something goes wrong
      • setup

        public void setup()
                   throws org.apache.commons.cli.ParseException
        Description copied from class: DSpaceRunnable
        This 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:
        setup in class DSpaceRunnable
        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 options
        indexer - the solr indexer
        Throws:
        SearchServiceException - in case of a solr exception
        IOException - passed through