java - Lucene 3.6 Index File Optimisation after Backup Restore -


i using lucene 3.6 search engine java desktop application. directory file used store lucene index.

the application has backup operation backs database. question when backup database restored, how optimize lucene index directory reflect new database , not old database.

for example :

index file contains index database a.

database b restored system. current database b. how make index file store index database b , not a.

do have rebuild index (undesirable if database large) , or there way out.

best regards ,

codeangel

you can maintain multiple indexes well, swapping on saved index maintined database b @ same time swap database b. backups, create snapshot of index, using persistentsnapshotdeletionpolicy. whether suits backup strategy determine.

either that, or rebuild index.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -