Re: About FSDirectory, File

2011-02-13 Thread narayan bhati
Hi, you can export index with jar itself and do not provide absolute path relative to file system instead create folder named index in your project space then as below you can get index directory directory=FSDirectory.open(new File("index")); here path is relative to you workspace which will not

About FSDirectory, File

2011-02-13 Thread Gong Li
Hi, I need to generate executable JAR. In my code, it has some lines as following: String path = "d:\\project\\"; File f = new File(path); Directory dir = FSDirectory.open(f); In the path, there is a wordnet index which is used to search by synonyms. When I run the JAR, it needs local directory