Reindex alfresco SOLR on Linux environment


Follow below Steps for  Reindex  Alfresco SOLR.


      a) Back-up Alfresco Server.


           -      Before backup the server shutdown the alfresco server.
           -          Create Backup folder example as   /home/sachin /
           -          Change  the directory as below,
                           $ cd  /home/sachin/
           -      Take  the backup using following command from alfresco installation path in my case                                                /srv/alfresco     

                          $  tar -zcvf alfresco_bck_reindexing(mm-dd-yyyy).tar.gz  /srv/alfresco

       b) Confirm the location of the Solr core directories
 
            Confirm the location of the Solr core directories for archive-SpacesStore and 
            workspace-SpacesStore cores. This can be determined from the solrcore.properties file for 
            both the cores.
            
              By default, the solrcore.properties file can be found at
                      $ALFRESCO_HOME/alf_data/solr/workspace-SpacesStore/conf and                        
                     $ALFRESCO_HOME/alf_data\solr\archive-SpacesStore\conf.

           Find the entry for property "data.dir.root"  in both files
           For in my environment alfresco setup values for this property is ,
                                data.dir.root=/srv/alfresco/alf_data/solr

      c) Delete the contents of the index data directories for each Solr core

                (The path mentioned in command as  per my alfresco  environment setup)
                        $  rm -rf /srv/alfresco/alf_data/solr/workspace/SpacesStore/*
                       $  rm -rf /srv/alfresco/alf_data/solr/archive/SpacesStore/*

      d) Delete all the Alfresco models for each Solr core

                (The path mentioned in command as  per my alfresco  environment setup)
                       $ rm -rf /srv/alfresco/alf_data/solr/workspace-SpacesStore/alfrescoModels/*
                       $ rm  -rf /srv/alfresco/alf_data/solr/archive-SpacesStore/alfrescoModels/*

  

      e) Monitor the application server logs for Solr. You will get the following                 warning messages on bootstrap:

 WARNING: [alfresco] Solr index directory '/path/to/alfresco/home/solr/workspace/SpacesStore/index' doesn't exist. Creating new index...

24-Apr-2015 11:21:11 org.apache.solr.handler.component.SpellCheckComponent inform
WARNING: No queryConverter defined, using default converter
24-Apr-2015 11:21:11 org.apache.solr.core.SolrCore initIndex
WARNING: [archive] Solr index directory '/path/to/alfresco/home/alf_data/solr/archive/SpacesStore/index' doesn't exist. Creating new index...

If you get the above mentioned logs in your alfresco logs means Re-Indexing is done successfully.



Comments

Popular posts from this blog

Export & auto sync Liferay Calendar events with Outlook & Google Calendar

Configure SOLR with Liferay

Liferay I18N support for Swahili Language