I recently encountered a case where several indexes broke because they had zero-length segment and schema files. These were indexes that were being updated incrementally via regular cron jobs, and already had more than one segment. The condition I found them in suggested that somehow a segment was started but not finished.
The fact that there was more than one index suggested to me that I had some systemic problem with the cron'd indexing logic or the Dezi code that was wrapping the Lucy code, but since neither of those had changed in months, I was puzzled to see the problem occur at all. None of my logs revealed any error. I simply couldn't create a new Searcher, instead getting a fatal exception about a NULL segment. So my questions are: (1) under what conditions would Lucy leave an index with zero-length segment and schema files? (2) is there any way to recover from such a condition? (presumably by re-creating the .schema file) TIA, pek -- Peter Karman . www.peknet.com . @peterkarman
