lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Detecting index existance
Date Tue, 13 Jun 2006 23:51:43 GMT
Well, I just tried it (opening an IndexSearcher) and got this exception...

java.io.FileNotFoundException: C:\blank\segments (The system cannot find the
file specified)

The directory c:\blank exists, but is empty. So, it seems you can just catch
the exception and infer that your admin users aren't doing very well at
keeping up <G>. Or you could test for the existence of the sebments file
first, up to you.

Best
Erick

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