Re: FileNotFoundException segments

2005-07-08 Thread Muetze303
Ok, your directory exists. if ((indexFile = new File(indexDir)).exists() && indexFile.isDirectory()) { exists = false; System.out.println("Index does not exist"); } now is exists == false at this point: writer = new IndexWriter(indexFile, new StandardAnalyzer(), exists); exists is still fals

RE: FileNotFoundException segments

2005-07-07 Thread Jason Polites
om: bib_lucene bib [mailto:[EMAIL PROTECTED] Sent: Friday, 8 July 2005 8:21 AM To: java-user@lucene.apache.org Subject: Re: FileNotFoundException segments This is a new directory, created just before this step. I am uploading files to this directory. The file is getting uploaded fine. Any

Re: FileNotFoundException segments

2005-07-07 Thread bib_lucene bib
This is a new directory, created just before this step. I am uploading files to this directory. The file is getting uploaded fine. Any ideas? Muetze303 <[EMAIL PROTECTED]> wrote: probably the dir exists, but the index inside the dir is broken or not complete and you are trying to use it instead o

Re: FileNotFoundException segments

2005-07-07 Thread Muetze303
probably the dir exists, but the index inside the dir is broken or not complete and you are trying to use it instead of creating a new one?! bib_lucene bib wrote: Hi All can someone please help me on the error in my web application... I am using tomcat , the path for index dir is obtained fr