cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Index Restoratation

amitabhandari1
Champ in-the-making
Champ in-the-making
HI

Can anyone tell  how Lucene Index Restoration takes place. How can we test it . Difference between Full and Validate.
I walk thorugh "http://wiki.alfresco.com/wiki/Backup_and_Restore" the url and the last topic "Lucene Index Restoration " is there.
But how can we test this scenario before implemeting what is specified there.
2 REPLIES 2

pmonks
Star Contributor
Star Contributor
When the index.recovery.mode property is set to "VALIDATE" or "AUTO", Alfresco will check during startup whether the Lucene indexes are up to date or not (it does this by comparing transactions in the repo with transactions that have been indexed).  If the indexes are out of date, Alfresco will incrementally rebuild just the missing index entries.

In contrast, if index.recovery.mode=FULL, during startup Alfresco will assume the indexes (if any) that are currently on disk are completely out of date, and rebuild the entire Lucene index from scratch (which can take a long time if there's a lot of content in the repo).

This is relevant to backup/restore in that a backup set (particularly a hot backup set) may contain a copy of the Lucene indexes that are somewhat stale (out of date) compared to the backup of the repo itself.  This means that in the event of a restore Alfresco will need to bring the indexes back up to date by reindexing the missing transactions - this is the behaviour if index.recovery.mode=AUTO.

You can also skip backing up the Lucene indexes entirely and set index.recovery.mode=FULL, however this may dramatically increase the time it takes for a restore to occur.

Cheers,
Peter

archana_bonkanp
Champ in-the-making
Champ in-the-making
When to use
HOT BAckup and Cold BAckup.
Whats the advantage of using them individually.