code: public void parseAndAddDictionaries(CmsObject cms) throws CmsRoleViolationException {
  
          OpenCms.getRoleManager().checkRole(cms, CmsRole.ROOT_ADMIN);
          CmsSpellcheckDictionaryIndexer.parseAndAddZippedDictionaries(m_solrClient, cms);
          CmsSpellcheckDictionaryIndexer.parseAndAddDictionaries(m_solrClient, cms);
      }
docs: Parses and adds dictionaries to the Solr index.
  
  @param cms the OpenCms object.
  
  @throws CmsRoleViolationException in case the user does not have the required role ROOT_ADMIN