lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Turcotte" <>
Subject Re: Rebuilding index on a regular basis
Date Thu, 21 Dec 2006 03:11:33 GMT

How about this:

1) You copy the files that make your index in a new folder
2) You update your index in that new folder (forcing if necessary, old locks
will not be valid)
3) When update is completed, close your readers, and open them on the new
4) Copy the fresh index files to the previous location for next round, where
you won't need the initial copy to a fresh folder.

That way, you won't have to reindex all your documents (assuming only a
small subset needs updating) and will be able to switch to a more up to date
index more easily and often.


On 12/20/06, Scott Sellman <> wrote:
> Note: I have changed the title of this thread to match its content
> I am currently facing a similar issue.  I am dealing with a large index
> that is constantly used and needs to be updated on a daily basis.  For
> fear of corruption I would rather rebuild the index each time,
> performing tests against it before using it.  However the problem I am
> having is switching in the old index without causing service
> interruption.  As long as queries are being made against the index I am
> running into locking issues with the index files, preventing me from
> putting the new index in place. Any suggestions?
> Thanks,
> Scott

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message