lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karel Tejnora <ka...@tejnora.cz>
Subject Re: [jira] Commented: (LUCENE-555) Index Corruption
Date Tue, 25 Apr 2006 20:20:19 GMT
Ok than
indexer indexes to separate directory (sequence of dir, e.g. 1/ 2/ 3/ 
4/) with create=true. [transaction log]
than merges newly created index to 'for-search' index.
backup is copy of 'for-search' index
than rollforward is IndexWriter addIndexes(...) newer than backup image.
rollbackward to DATE is rollforward to date etc.
indexed data kept as chunk of xml files.

also there is no problem to have 'for-search' indexes 0/ 1/ directory 
and use soft link
current and old.On success of following swap those links.
IndexWriter path=old/ create=true
IndexWriter.addIndexes(new Directory[] { current, 5/ }

Doug has written somewhere how technorati achived delta-backups.

There are a lot of way achive fail-over.

PS: MySQL :) try to work with innodb and move system time backward.

>>- Like all modern database programs, there has to be a way to repair an index. Period.
>>    
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message