Re: Pattern for maintaining FSDirectory copy of RAMDirectory

2009-02-16 Thread Erick Erickson
WARNING: I haven't had occasion to use the Directory.copy method, so I'm talking a bit theoretically here. I guess my main issue with your scheme is the usual abnormal termination issues and how you can be absolutely sure boust what's in your FSDir. So I guess what I'd do is create some kind

Pattern for maintaining FSDirectory copy of RAMDirectory

2009-02-16 Thread Joel Halbert
Hi, I have a RAMDirectory based index. The document source for the index is a database table, where content to be indexed is stored alongside a status (pending_index, indexed, pending_delete, deleted). Each time the application is started, and periodically thereafter, all documents from the databa