lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Kolstad" <>
Subject Best practice for updating an index when reindexing is not an option
Date Thu, 10 Jul 2008 13:15:55 GMT

Currently using Lucene 2.3.2 in a tomcat webapp. We have an action
configured that performs reindexing on our staging server. However, our live
server can not reindex since it does not have the necessary dtd files to
process the xml.

To update the index on the live server we perform a subversion update on the
lucene index directory.
Unfortunately this makes it necessary to stop the IndexSearcher while the
SubversionUpdate is doing its thing.

Presently we've had a requirement from our customer to not disable search.

So my idea was to copy the index directory to another directory and then
switch the IndexSearcher from the original index directory to the temporary
Then perform the Subversion update, and when done, switch the IndexSearcher
back to the original (now, updated) index directory.

Does anyone have any other suggestions on how to update the index directory
from subversion without having to disable the IndexSearcher?


Christopher Kolstad
|100 little bugs in the code, debug one, |
|recompile, 101 little bugs in the code |

E-mail: (University) (Home) (Job)

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