1

I just did a migration of Alfresco to a new server with a different drive layout. Instead of being on "C", it's now on "E". I changed the alfresco-global.properties references to point to E. However, SOLR still insists on writing it's index files to drive C. It appears that SOLR should use dir.root (which points to E), however, it's not (at least for the index files... All the rest of SOLR is on drive E and it's functioning).

How can I get SOLR to use the new drive, instead of C, for the index files?

Brian Knoblauch
  • 2,188
  • 2
  • 32
  • 45

1 Answers1

2

Alfresco provide an Installation guide for Solr which covers most of what you'll need.

From there, you'll see that in the context.xml file you copy into the Tomcat directory you can set the docBase to control where it finds the war, and solr/home for where it finds most of the rest of the Alfresco Solr setup. Finally, in the Solr home, there's a per-core solrcore.properties file, in which you can set where the index files get placed.

Gagravarr
  • 747
  • 3
  • 7
  • 21
  • 1
    The critical part was setting data.dir.root in each of: /archive-SpacesStore/conf/solrcore.properties & /workspace-SpacesStore/conf/solrcore.properties Then I copied the data over and rebooted! – Brian Knoblauch Aug 08 '14 at 17:10