Class CmsSpellcheckDictionaryIndexer

java.lang.Object
org.opencms.search.solr.spellchecking.CmsSpellcheckDictionaryIndexer

public final class CmsSpellcheckDictionaryIndexer extends Object
Helping class for manipulating the Solr spellchecker indices.
  • Field Details

  • Method Details

    • parseAndAddDictionaries

      public static void parseAndAddDictionaries(org.apache.solr.client.solrj.SolrClient client, CmsObject cms)
      Adds all dictionaries that are available in the default directory.

      Parameters:
      client - The SolrClient instance object.
      cms - the cms context
    • parseAndAddZippedDictionaries

      public static void parseAndAddZippedDictionaries(org.apache.solr.client.solrj.SolrClient client, CmsObject cms)
      Parameters:
      client - The SolrClient instance object.
      cms - The OpenCms instance object.
    • updatingIndexNecessesary

      public static boolean updatingIndexNecessesary(CmsObject cms)
      Checks whether a built of the indices is necessary.
      Parameters:
      cms - The appropriate CmsObject instance.
      Returns:
      true, if the spellcheck indices have to be rebuilt, otherwise false