Wednesday, April 23, 2014

Reindexing solr on Alfresco 4.x

In certain condition we are not getting our nodes are in sync or while searching node are not appear in search. This is due to non-indexed nodes.

Re-index required to index those nodes.
Here are few steps you can consider to re-index solr.

Note: Here I assume you have single machine on which alfresco and solr running on same server.

#1 : First confirm solr core directories

you can find archive-SpacesStore and workspace-SpacesStore core directories.
you can determine location using solrcore.properties.


This properties file mostly in following location:
<alf_home>\alf_data\solr\workspace-SpacesStore\conf

#2 : Stop alfresco server

#3 : Delete the contents in following directories
        - <alf_home>\alf_data\solr\workspace\SpacesStore
   - <alf_home>\alf_data\solr\archive\SpacesStore

#4 : Delete the models in following directories
     - <alf_home>\alf_data\solr\workspace-SpacesStore\alfrescoModels
  - <alf_home>\alf_data\solr\archive-SpacesStore\alfrescoModels


#5 : Restart Alfresco/solr
   - Start alfresco server which is having solr server





No comments:

Post a Comment