Saturday, July 7, 2012

How to Rebuild SOLR indexes in Alfresco 4.x ?


In Association with Amazon.in


NOTE: The index.recovery.mode=FULL property is not used by SOLR Engine.

Steps to rebuild SOLR indexes:

1) Stop the Server.

2) Remove two folders named “index” and “spellchecker” in “ALFRESCO/alf_data/solr/workspace/SpacesStore/” path.

3) Remove two folders named “index” and “spellchecker” in “ALFRESCO/alf_data/solr/archive/SpacesStore/” path.

4) Start the Server.

By default, the SOLR indexes are stored in
“ALFRESCO/alf_data/solr/workspace/SpacesStore/” path for workspace-SpacesStore and “ALFRESCO/alf_data/solr/archive/SpacesStore/” path for archive-SpacesStore.

Each store has its own index directory defined by property ${data.dir.root}/${data.dir.store} in solrcore.properties file.

To change the index location for both stores, edit the
solrcore.properties file:
  • SOLR/workspace-SpacesStore/conf/solrcore.properties
  • SOLR/archive-SpacesStore/conf/solrcore.properties

Set the data.dir.root property to the location where the SOLR indexes will be stored. You can also set the same value for the both stores, and the stores will create the sub-directories.

Eg:
1)  For workspace-SpaceStore, edit SOLR/workspace-SpacesStore/conf/solrcore.properties file
data.dir.root=/mnt/data-store/solr-indexes
data.dir.store=workspace/SpacesStore

2) For archive-SpaceStore, edit SOLR/archive-SpacesStore/conf/solrcore.properties
data.dir.root=/mnt/data-store/solr-indexes
data.dir.store=archive/SpacesStore




In Association with Amazon.in

No comments:

Post a Comment