cancel
Showing results for 
Search instead for 
Did you mean: 

Define different locations for index / documents

wmay
Champ in-the-making
Champ in-the-making
Now there is a parameter to configure the location (Alf_data) where the lucene index data (lucene-indexes) and the documents are saved (contentstore).

The access to the lucene index should be as fast as possible and should be located at the local harddisk of the server.

Is it possible to define 2 different locations - one location for the lucene index at e.g. the local harddisk of the server and one location for the document store e.g on a NAS or Netapp system.

Or is this not possible and must be both folders always in the same folder on the same location e.g. on the local drive or on the NAS ?

Thank you for your help.
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
If you go look at $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties, you'll see the dir.* properties that you are overriding when you set them to your own values in alfresco-global.properties.

You'll see that there are separate properties for the contentstore directory and the indexes directory.
dir.root=./alf_data
dir.contentstore=${dir.root}/contentstore
dir.contentstore.deleted=${dir.root}/contentstore.deleted

# The location for lucene index files
dir.indexes=${dir.root}/lucene-indexes

# The location for index backups
dir.indexes.backup=${dir.root}/backup-lucene-indexes
Split them up as you wish, but make sure the indexes stay on local storage.

Jeff