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

2 comments:

  1. Dear,

    Is it possible to implement this step by step for SOLR indexing Alfresco?

    We are installing alfresco 4.0d with SOLR, and it seems we have problem with indexing and searching document using SOLR.

    May be you have a clue on how to solve it.

    Many Thanks

    mdarmaone

    ReplyDelete
    Replies
    1. I haven't use SOLR :(
      Try on your own computer maybe it is possible.

      Delete