got it, thanx
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Verzonden: vr 2-2-2007 16:59
Aan: "mailto:[EMAIL PROTECTED]
Verzonden: vr 2-2-2007 16:45
Aan: java-user@lucene.apache.org
Onderwerp: RE : indexWriter
Hi Erik
The \ must be escaped in the path,
Hi,
You first need to initialize the directory (since it's empty).
use,
IndexWriter writer = new IndexWriter(indexDir, new StandardAnalyzer(), true);
the first time you are writing.
-Nilesh
On 2/2/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
I already tried that but does not help
do I also
I already tried that but does not help
do I also have to create a file in that dir? Or is it some other problem
import org.apache.lucene.index.IndexWriter;
File indexDir = new File("c:\\temp");
IndexWriter writer = new IndexWriter(indexDir, new StandardAnalyzer(), false);
_