AnsweredAssumed Answered

Hint:Solr config changes when upgrading

Question asked by peterglock on Dec 22, 2012
I recently upgraded from a previous nightly build of CE 4.2.c to the released version following the upgrade instructions http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/tasks/upgrade-process.html

Our repository is on a separate raid array from the application

One thing I missed was that solr would need setting up in the upgraded instance to point to the non-standard repo. Abit of googling got me to http://deepak-keswani.blogspot.co.uk/2012/07/how-to-rebuild-solr-indexes-in-alfresco.html

I'll repoduce the bits that I found useful here:

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

Outcomes