On Jan 10, 2005, at 8:26 AM, Joseph Ottinger wrote:
My normal process on application startup is to get an IndexWriter, just to
make sure an index is there. If I get an exception (FileNotFoundException
for the FSDirectory, for example), I assume the index isn't created
properly, so then I create a new IndexWriter set to create the index.


With a file-based directory, that works well enough - and I realise there
might be a better way to do it (but I don't know it yet.)

How about using IndexReader.indexExists() instead?


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to