Re: Creating initial index using FSDirectory

2006-06-21 Thread Erick Erickson
From an e-mail from Kent Fitch in the thread "*Detecting index existance* " Try IndexReader static method indexExists: http://lucene.apache.org/java/docs/api/org/apache/lucene/index/IndexReader.html#indexExists(java.lang.String)

Creating initial index using FSDirectory

2006-06-21 Thread Leandro Saad
Hi all. I'm writing a avalon component that wrapps lucene. My problem is that I can't start the component using FSDirectory unless the index files are already in place (segment, etc) , or I set the rewrite flag to true. I my case, I'd like to create the index file structure only the first time I