Friday, January 27, 2012

Lucene İndex Recovery (Alfresco)

Last week I searched some documents in our DM system. However my program failed to find them. (fts-alfresco)
I remember that in some files has problems and it doesn’t let lucene to create index for those documents. Solution is recovery of index. How to recovery index ???

Step1. Stop Alfresco
Step2. Delete everything under /alf_data/lucene-indexes (don't delete folder)
           Delete everything under /alf_data/backup-lucene-indexes (don't delete folder)
Step3. Edit file /tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties
           Set the property index.recovery.mode as follows: index.recovery.mode=FULL
Step4. Start Alfresco see logs, must create index
Step5. Stop Alfresco + change "index.recovery.mode=FULL" to default

Step6. Start Alfresco